]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: simplify usage of the rcur local variable in xfs_rmap_finish_one
authorChristoph Hellwig <hch@lst.de>
Wed, 29 May 2024 04:11:45 +0000 (21:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:17:06 +0000 (17:17 -0700)
commita568243c1f1a063dd8ff321b4fa9af20e6678485
tree69eef95e7702c2678903a06dee90dd4de58449c6
parent63bd04f0c2c34c1b4abb544770d81293a055e6bc
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