]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: map an inode's offset to an exact physical block
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:31:37 +0000 (12:31 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:31:37 +0000 (12:31 +1100)
commit34621a4761b8314d4bbba1507d55d73e731c6e24
tree78d12eb96699536858d092f5385fc415867c8caf
parent34f8f3e12ea53c8ec956560df322a8f24a15f6a4
xfs: map an inode's offset to an exact physical block

Source kernel commit: f65306ea5246ef3ff68a6abf85f5a73a04903366

Teach the bmap routine to know how to map a range of file blocks to a
specific range of physical blocks, instead of simply allocating fresh
blocks.  This enables reflink to map a file to blocks that are already
in use.

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