]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: remove redundant update for ticket->t_curr_res in xfs_log_ticket_regrant
authorLong Li <leo.lilong@huawei.com>
Mon, 23 Dec 2024 11:45:10 +0000 (19:45 +0800)
committerCarlos Maiolino <cem@kernel.org>
Thu, 9 Jan 2025 09:36:23 +0000 (10:36 +0100)
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 <leo.lilong@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_log.c

index 05daad8a8d34dfc635eb6ac0dd2d79cf31b30b94..f8851ff835deab1513064d794cc3caa6644a96a2 100644 (file)
@@ -2744,8 +2744,6 @@ xfs_log_ticket_regrant(
        if (!ticket->t_cnt) {
                xlog_grant_add_space(&log->l_reserve_head, ticket->t_unit_res);
                trace_xfs_log_ticket_regrant_exit(log, ticket);
-
-               ticket->t_curr_res = ticket->t_unit_res;
        }
 
        xfs_log_ticket_put(ticket);