summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/opts.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-02-14 01:42:31 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:24 -0400
commit2232fa397c2be92ed80ee48d52de98a1a2916b06 (patch)
tree91ad7707921c84789dd01f662e4976e0d677bff7 /fs/bcachefs/opts.h
parentc929f2306e61500bf68a39cb2a16006bfe844d52 (diff)
downloadlinux-2232fa397c2be92ed80ee48d52de98a1a2916b06.tar.gz
linux-2232fa397c2be92ed80ee48d52de98a1a2916b06.tar.bz2
linux-2232fa397c2be92ed80ee48d52de98a1a2916b06.zip
bcachefs: Only allocate buckets_nouse when requested
It's only needed by the migrate tool - this patch adds an option to enable allocating it. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r--fs/bcachefs/opts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h
index 4b438098aecb..57c829b6eee1 100644
--- a/fs/bcachefs/opts.h
+++ b/fs/bcachefs/opts.h
@@ -365,6 +365,11 @@ enum opt_type {
NO_SB_OPT, false, \
NULL, "Set superblock to latest version,\n" \
"allowing any new features to be used") \
+ x(buckets_nouse, u8, \
+ 0, \
+ OPT_BOOL(), \
+ NO_SB_OPT, false, \
+ NULL, "Allocate the buckets_nouse bitmap") \
x(project, u8, \
OPT_INODE, \
OPT_BOOL(), \