]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add xfs_trim_extent
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 20 Oct 2016 04:51:50 +0000 (15:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:51:50 +0000 (15:51 +1100)
commitf4d84836d7035eb160ef58a68962787070f2a952
tree998058c14e75c6b7136fb35c7ea3a57bb0d4bd62
parent49097010fa27ee9261955d486abf46dc7672ccbb
xfs: add xfs_trim_extent

This helpers allows to trim an extent to a subset of it's original range
while making sure the block numbers in it remain valid,

In the future xfs_trim_extent and xfs_bmapi_trim_map should probably be
merged in some form.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
[hch: split from a previous patch from Darrick, moved around and added
 support for "raw" delayed extents"]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h