From: Naohiro Aota <naohiro.aota@wdc.com>
To: David Sterba <dsterba@suse.com>
Cc: linux-btrfs@vger.kernel.org, Naohiro Aota <naohiro.aota@wdc.com>
Subject: [PATCH] btrfs: zoned: disable space cache using proper function
Date: Fri, 14 May 2021 11:03:08 +0900 [thread overview]
Message-ID: <20210514020308.3824607-1-naohiro.aota@wdc.com> (raw)
As btrfs_set_free_space_cache_v1_active() is introduced, this patch uses
it to disable space cache v1 properly.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
---
fs/btrfs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 4a396c1147f1..89ffc17d074c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -592,7 +592,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
if (btrfs_is_zoned(info)) {
btrfs_info(info,
"zoned: clearing existing space cache");
- btrfs_set_super_cache_generation(info->super_copy, 0);
+ btrfs_set_free_space_cache_v1_active(info, false);
} else {
btrfs_set_opt(info->mount_opt, SPACE_CACHE);
}
--
2.31.1
next reply other threads:[~2021-05-14 2:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 2:03 Naohiro Aota [this message]
2021-05-14 10:05 ` [PATCH] btrfs: zoned: disable space cache using proper function Qu Wenruo
2021-05-14 15:30 ` David Sterba
2021-05-18 6:13 ` Naohiro Aota
2021-05-14 15:27 ` David Sterba
2021-05-18 6:21 ` Naohiro Aota
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210514020308.3824607-1-naohiro.aota@wdc.com \
--to=naohiro.aota@wdc.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.