diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-21 00:15:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:28 -0400 |
commit | 63c4b25453828ee0670162d35f928ab43635e7fc (patch) | |
tree | f7a5d03fa18c92421a64c8cf65f3e1d992dd4b93 /fs/bcachefs/sysfs.c | |
parent | 74b33393db54dd321c807c621fad966eb9ec54e5 (diff) | |
download | linux-63c4b25453828ee0670162d35f928ab43635e7fc.tar.gz linux-63c4b25453828ee0670162d35f928ab43635e7fc.tar.bz2 linux-63c4b25453828ee0670162d35f928ab43635e7fc.zip |
bcachefs: Better superblock opt validation
This moves validation of superblock options to bch2_sb_validate(), so
they'll be checked in the write path as well.
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 afcb5ad1aa62..dc67506e08d7 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -624,7 +624,7 @@ STORE(bch2_fs_opts_dir) goto err; } - ret = bch2_opt_parse(c, NULL, opt, strim(tmp), &v); + ret = bch2_opt_parse(c, opt, strim(tmp), &v, NULL); kfree(tmp); if (ret < 0) |