Commit e51987a1 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: simplify usage of the rcur local variable in xfs_refcount_finish_one



Only update rcur when we know the final *pcur value.

Inspired-by: default avatarChristoph Hellwig <hch@lst.de>
[djwong: don't leave the caller with a dangling ref]
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent bac3f784
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment