diff options
author | Brian Foster <bfoster@redhat.com> | 2018-05-09 08:45:04 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-10 08:56:46 -0700 |
commit | fcb762f5de2e534ab47b5f034fe484c2b25b4d51 (patch) | |
tree | 2f8ff2257d0939652cee00e0f801ab559dd48c41 /fs/xfs/xfs_extfree_item.c | |
parent | e6631f85546c8ff8842f62c73be44ff502d4287a (diff) | |
download | linux-fcb762f5de2e534ab47b5f034fe484c2b25b4d51.tar.gz linux-fcb762f5de2e534ab47b5f034fe484c2b25b4d51.tar.bz2 linux-fcb762f5de2e534ab47b5f034fe484c2b25b4d51.zip |
xfs: add bmapi nodiscard flag
Freed extents are unconditionally discarded when online discard is
enabled. Define XFS_BMAPI_NODISCARD to allow callers to bypass
discards when unnecessary. For example, this will be useful for
eofblocks trimming.
This patch does not change behavior.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_extfree_item.c')
-rw-r--r-- | fs/xfs/xfs_extfree_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_extfree_item.c b/fs/xfs/xfs_extfree_item.c index 70b7d48af6d6..a889b550979a 100644 --- a/fs/xfs/xfs_extfree_item.c +++ b/fs/xfs/xfs_extfree_item.c @@ -542,7 +542,7 @@ xfs_efi_recover( for (i = 0; i < efip->efi_format.efi_nextents; i++) { extp = &efip->efi_format.efi_extents[i]; error = xfs_trans_free_extent(tp, efdp, extp->ext_start, - extp->ext_len, &oinfo); + extp->ext_len, &oinfo, false); if (error) goto abort_error; |