Skip to content

Commit adcaff3

Browse files
Long Licmaiolino
authored andcommitted
xfs: remove redundant update for ticket->t_curr_res in xfs_log_ticket_regrant
The current reservation of the log ticket has already been updated a few lines above in xfs_log_ticket_regrant(), so there is no need to update it again. This is just a code cleanup with no functional changes. Signed-off-by: Long Li <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 99fc33d commit adcaff3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/xfs/xfs_log.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,8 +2744,6 @@ xfs_log_ticket_regrant(
27442744
if (!ticket->t_cnt) {
27452745
xlog_grant_add_space(&log->l_reserve_head, ticket->t_unit_res);
27462746
trace_xfs_log_ticket_regrant_exit(log, ticket);
2747-
2748-
ticket->t_curr_res = ticket->t_unit_res;
27492747
}
27502748

27512749
xfs_log_ticket_put(ticket);

0 commit comments

Comments
 (0)