summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_btree_staging.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 10:40:13 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:28:47 -0800
commitd49e571d9ffd312a7edce4037df42e9aab4401da (patch)
tree372e518895512ff1675324fb608d459fc51c35bc /fs/xfs/libxfs/xfs_btree_staging.c
parentf6e12b526795f18244be14fd0ea22a5c1de6fd0b (diff)
xfs: speed up write operations by using non-overlapped lookups when possiblermap-speedups_2021-12-15
Reverse mapping on a reflink-capable filesystem has some pretty high overhead when performing file operations. This is because the rmap records for logically and physically adjacent extents might not be adjacent in the rmap index due to data block sharing. As a result, we use expensive overlapped-interval btree search, which walks every record that overlaps with the supplied key in the hopes of finding the record. However, profiling data shows that when the index contains a record that is an exact match for a query key, the non-overlapped btree search function can find the record much faster than the overlapped version. Try the non-overlapped lookup first when we're trying to find the left neighbor rmap record for a given file mapping, which makes unwritten extent conversion and remap operations run faster if data block sharing is minimal in this part of the filesystem. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree_staging.c')
0 files changed, 0 insertions, 0 deletions