diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-05 05:53:13 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:18 +0300 |
commit | 506717865bd68997dd0490409fd51a9f68915cf2 (patch) | |
tree | 742e3d4c495e372513775f33f8b9a029bbcda74c /fs/bcachefs/sysfs.c | |
parent | 47b15c5760d5eec6c69f207eda7f779c2170e285 (diff) | |
download | linux-506717865bd68997dd0490409fd51a9f68915cf2.tar.xz |
bcachefs: Specify filesystem options
We've got three types of options now - filesystem, device and inode, and
a given option may belong to more than one of those types.
This patch changes the options to specify explicitly when they're a
filesystem option - in the future we'll probably be adding more device
options.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index fae2356061b0..d5d32bf16d68 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -685,7 +685,7 @@ int bch2_opts_create_sysfs_files(struct kobject *kobj) for (i = bch2_opt_table; i < bch2_opt_table + bch2_opts_nr; i++) { - if (!(i->mode & (OPT_FORMAT|OPT_MOUNT|OPT_RUNTIME))) + if (!(i->mode & OPT_FS)) continue; ret = sysfs_create_file(kobj, &i->attr); |