]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add xfs_trim_extent
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:47:36 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:36 +0000 (12:47 +1100)
commitb3fd8db7f773a377c4cebc9bcc8852126f25522a
treeeace4f1c23016d66901bc137f5760933f3ebf381
parent2375c1f73b0ddce8433ae2716a17e216f737fb3b
xfs: add xfs_trim_extent

Source kernel commit: 0a0af28cad9a43d90f13c2047bd8ee3d4cffb7f3

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>
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h