diff options
author | David Sterba <dsterba@suse.cz> | 2013-09-17 16:54:00 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:20:43 -0400 |
commit | 15ac848f8a376d62a14d5f97ac5106f10f920c5a (patch) | |
tree | 227c648ad013157c6a9ea898e29648cbf0d2378d /utils.c | |
parent | f3ba66263473660aa4b2bde1623db7b969abdbae (diff) |
btrfs-progs: use better name for nodiscard variable and flip the logic
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -569,7 +569,7 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans, } int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, - u64 max_block_count, int *mixed, int nodiscard) + u64 max_block_count, int *mixed, int discard) { u64 block_count; u64 bytenr; @@ -596,7 +596,7 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, *mixed = 1; } - if (!nodiscard) { + if (discard) { /* * We intentionally ignore errors from the discard ioctl. It is * not necessary for the mkfs functionality but just an optimization. |