]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: simplify usage of the rcur local variable in xfs_rmap_finish_one
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Jul 2024 18:23:03 +0000 (11:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:37:04 +0000 (11:37 -0700)
commit905af72610d90f58f994feff4ead1fc258f5d2b1
tree212fda66844ae6408897957cd2dcca8ddb9a16a7
parent8363b4361997044ecb99880a1a9bfdebf9145eed
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>
fs/xfs/libxfs/xfs_rmap.c