]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: simplify usage of the rcur local variable in xfs_rmap_finish_one
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jul 2024 21:21:41 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jul 2024 22:37:07 +0000 (15:37 -0700)
commit3d775c2971b145e41721b93724232e22e2e40cd4
treed2c87e0b8f57e72830c5905a8c983298840e1d4f
parent97c296670401dd4594b388c9daf7d501f7cb8605
xfs: simplify usage of the rcur local variable in xfs_rmap_finish_one

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
[djwong: don't leave the caller with a dangling ref]
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_rmap.c