]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: simplify xfs_rmap_lookup_le call sites
authorDarrick J. Wong <djwong@kernel.org>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commit4a19528261c4ddd8ca96a6d4afd27fb81163b3c3
tree6fb892ba07c9ac3a35c62a68ea49a6bdc37301b0
parentf5fa1fb2fca5073784f0ee85febc221e77356a27
xfs: simplify xfs_rmap_lookup_le call sites

Source kernel commit: 5b7ca8b313621907d80460bfcc1fa876d2a38488

Most callers of xfs_rmap_lookup_le will retrieve the btree record
immediately if the lookup succeeds.  The overlapped version of this
function (xfs_rmap_lookup_le_range) will return the record if the lookup
succeeds, so make the regular version do it too.  Get rid of the useless
len argument, since it's not part of the lookup key.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h
repair/rmap.c