summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2019-12-13 16:22:11 -0800
committerDavid Sterba <dsterba@suse.com>2020-01-20 16:40:57 +0100
commit46b27f5059e6ce7a7e3805d53144b37897723e3b (patch)
treee01a9cf2a48fab585b59bfab84423eff2653d3a5 /fs/btrfs/inode.c
parente837dfde15a49c97dcbb059757d96c71e9e7bd54 (diff)
btrfs: rename DISCARD mount option to to DISCARD_SYNC
This series introduces async discard which will use the flag DISCARD_ASYNC, so rename the original flag to DISCARD_SYNC as it is synchronously done in transaction commit. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Dennis Zhou <dennis@kernel.org> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index bf5d7ce358b5..6d2bb58d277a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2584,7 +2584,7 @@ out:
* Discard the range before returning it back to the
* free space pool
*/
- if (ret && btrfs_test_opt(fs_info, DISCARD))
+ if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC))
btrfs_discard_extent(fs_info,
ordered_extent->disk_bytenr,
ordered_extent->disk_num_bytes,