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>
This commit is contained in:

committed by
David Sterba

parent
e837dfde15
commit
46b27f5059
@@ -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,
|
||||
|
Reference in New Issue
Block a user