btrfs: set clear_cache if we use usebackuproot
authorJosef Bacik <josef@toxicpanda.com>
Wed, 22 Nov 2023 17:17:54 +0000 (12:17 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:05 +0000 (20:27 +0100)
commit9fb3b1a7fed796510a5c34f5d492840dfd0eb96c
tree0038bec1c0b78c2131f7c84aba100d7345115d6c
parent83e3a40a69f8dd57048089af31a1430c1808d924
btrfs: set clear_cache if we use usebackuproot

We're currently setting this when we try to load the roots and we see
that usebackuproot is set.  Instead set this at mount option parsing
time.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/super.c