mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00
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>
This commit is contained in:
parent
99fc33d16b
commit
adcaff355b
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue