]> 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)
commit8f29f8feeb822fa53ece2353020f9cc001b7aaac
tree63e0180eeab58262dc1c7e9ec32f1fcf4f6d033c
parent29073c0687d5ad7e4438dd22966212bf388fde03
parent9741844714f8708aed26de6b30dee93d5b3067fa
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