aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLong Li <leo.lilong@huawei.com>2024-12-23 19:45:10 +0800
committerCarlos Maiolino <cem@kernel.org>2025-01-13 14:56:09 +0100
commitadcaff355bd8abb9b5097cc72339fb9cbf2eefda (patch)
treeda741ca141704dac2dd1e223d6abbe5f6578c3ce
parentxfs: clean up xfs_end_ioend() to reuse local variables (diff)
downloadlinux-rng-adcaff355bd8abb9b5097cc72339fb9cbf2eefda.tar.xz
linux-rng-adcaff355bd8abb9b5097cc72339fb9cbf2eefda.zip
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 <leo.lilong@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--fs/xfs/xfs_log.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 05daad8a8d34..f8851ff835de 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -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);