]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - include/xfs_trace.h
xfs: use interval query for rmap alloc operations on shared files
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:46:22 +0000 (12:46 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:46:22 +0000 (12:46 +1100)
commit6c6bdf6f79822c7303c795b898403ebb100408f7
treed97529acb240e08651bc2d8dfc078581c1dd28fa
parent2b7e542877b1a8733bf89406572d958aaf8964ef
xfs: use interval query for rmap alloc operations on shared files

Source kernel commit: ceeb9c832eeca5c1c2efc54a38f67283ccb60288

When it's possible for reverse mappings to overlap (data fork extents
of files on reflink filesystems), use the interval query function to
find the left neighbor of an extent we're trying to add; and be
careful to use the lookup functions to update the neighbors and/or
add new extents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/xfs_trace.h
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h