]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: simplify usage of the rcur local variable in xfs_refcount_finish_one
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Nov 2023 22:50:56 +0000 (14:50 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:40 +0000 (15:03 -0800)
commitb95c5f8b8b0c23ff22dd73b3cd2c4dcf0bc4c11c
tree2347c86a9266c8a871372f5d28c9efab78046d66
parentdafef59e1a3b429f449f5fec38ca4e5cfea327dd
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: Christoph Hellwig <hch@lst.de>
[djwong: don't leave the caller with a dangling ref]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_refcount.c