]> 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, 2 Oct 2024 01:20:04 +0000 (18:20 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commitb8c3f60e7c3d545904ea1ba7ed1413f3a3eef7af
tree31f9e2b59b136574da962d4117fa9fe68f3f7eb8
parent1d056f92e5a04f82814521dd6b266b2a776babb4
xfs: simplify usage of the rcur local variable in xfs_rmap_finish_one

Source kernel commit: 905af72610d90f58f994feff4ead1fc258f5d2b1

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