Merge tag 'rmap-speedups-5.19_2022-04-28' of git://git.kernel.org/pub/scm/linux/kerne...
authorDave Chinner <david@fromorbit.com>
Wed, 4 May 2022 02:37:18 +0000 (12:37 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 4 May 2022 02:37:18 +0000 (12:37 +1000)
commit956f1b8f80b5d34394950269fcf7286122b9a3a9
tree63e0180eeab58262dc1c7e9ec32f1fcf4f6d033c
parent5e116e99dc94c84650a94aaf51d0c5bca3702352
parent1edf8056131aca6fe7f98873da8297e6fa279d8c
Merge tag 'rmap-speedups-5.19_2022-04-28' of git://git./linux/kernel/git/djwong/xfs-linux into xfs-5.19-for-next

xfs: fix rmap inefficiencies

Reduce the performance impact of the reverse mapping btree when
reflink is enabled by using the much faster non-overlapped btree
lookup functions when we're searching the rmap index with a fully
specified key.  If we find the exact record we're looking for,
great!  We don't have to perform the full overlapped scan.  For
filesystems with high sharing factors this reduces the xfs_scrub
runtime by a good 15%%.

This has been shown to reduce the fstests runtime for realtime rmap
configurations by 30%%, since the lack of AGs severely limits
scalability.

Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_trace.h