xfs: pass bmapi flags through to bmap_del_extent
Pass BMAPI_ flags from bunmapi into bmap_del_extent and extend BMAPI_REMAP (which means "don't touch the allocator or the quota accounting") to apply to bunmapi as well. This will be used to implement the unmap operation, which will be used by swapext. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -101,6 +101,9 @@ struct xfs_extent_free_item
|
||||
* Map the inode offset to the block given in ap->firstblock. Primarily
|
||||
* used for reflink. The range must be in a hole, and this flag cannot be
|
||||
* turned on with PREALLOC or CONVERT, and cannot be used on the attr fork.
|
||||
*
|
||||
* For bunmapi, this flag unmaps the range without adjusting quota, reducing
|
||||
* refcount, or freeing the blocks.
|
||||
*/
|
||||
#define XFS_BMAPI_REMAP 0x100
|
||||
|
||||
|
Reference in New Issue
Block a user