btrfs: remove redundant clearing of NODISCARD
authorAnand Jain <anand.jain@oracle.com>
Thu, 2 Mar 2023 13:30:48 +0000 (21:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commitce4cf3793e72a4ca2eeebc5db5d04f25b42a59db
tree896579649bb4138727b258590c74ff754ea36348
parent0f202b256a141e6c94398dcf262d4abdf8dff978
btrfs: remove redundant clearing of NODISCARD

If no discard mount option is specified, including the NODISCARD option,
we make the async discard the default option then we don't have to call
the clear_opt again to clear the NODISCARD flag. Though this makes no
difference, that the call is redundant has been pointed out several
times so we better remove it.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c