]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4501e9d9c5812f810fd2311c8b05c5d6f362ae0
tree63e0180eeab58262dc1c7e9ec32f1fcf4f6d033c
parentfca3c13744bb3b337873b09c9cf5faea3c5456f2
parentc1230f025414a2f82c1e399903554366d85e4b5f
Merge tag 'rmap-speedups-5.19_2022-04-28' of git://git.kernel.org/pub/scm/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