diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-13 16:24:21 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:13 +0300 |
commit | d42dd4ad6d7e15a7742ed008d1be3c37247547c9 (patch) | |
tree | a52b0407afe2f58fcd9fdc75477134f46c895715 /fs/bcachefs/opts.h | |
parent | a3e70fb287ee62ee14512a69e9a3e1870a057e11 (diff) | |
download | linux-d42dd4ad6d7e15a7742ed008d1be3c37247547c9.tar.xz |
bcachefs: merge BCH_INODE_FIELDS_INHERIT/BCH_INODE_OPTS
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 222c130c2054..faa2a72c8c3b 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -188,7 +188,10 @@ enum opt_type { NO_SB_OPT, false) \ BCH_OPT(version_upgrade, u8, OPT_MOUNT, \ OPT_BOOL(), \ - NO_SB_OPT, false) + NO_SB_OPT, false) \ + BCH_OPT(project, u8, OPT_INTERNAL, \ + OPT_BOOL(), \ + NO_SB_OPT, false) \ struct bch_opts { #define BCH_OPT(_name, _bits, ...) unsigned _name##_defined:1; @@ -281,16 +284,6 @@ int bch2_parse_mount_opts(struct bch_opts *, char *); /* inode opts: */ -#define BCH_INODE_OPTS() \ - x(data_checksum, 8) \ - x(compression, 8) \ - x(background_compression, 8) \ - x(data_replicas, 8) \ - x(promote_target, 16) \ - x(foreground_target, 16) \ - x(background_target, 16) \ - x(erasure_code, 16) - struct bch_io_opts { #define x(_name, _bits) unsigned _name##_defined:1; BCH_INODE_OPTS() |