diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-21 05:15:38 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:28 +0200 |
commit | 63c4b25453828ee0670162d35f928ab43635e7fc (patch) | |
tree | f7a5d03fa18c92421a64c8cf65f3e1d992dd4b93 /fs/bcachefs/xattr.c | |
parent | bcachefs: x-macro metadata version enum (diff) | |
download | linux-63c4b25453828ee0670162d35f928ab43635e7fc.tar.xz 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/xattr.c')
-rw-r--r-- | fs/bcachefs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c index ecce10342126..270276a0289f 100644 --- a/fs/bcachefs/xattr.c +++ b/fs/bcachefs/xattr.c @@ -525,7 +525,7 @@ static int bch2_xattr_bcachefs_set(const struct xattr_handler *handler, memcpy(buf, value, size); buf[size] = '\0'; - ret = bch2_opt_parse(c, NULL, opt, buf, &v); + ret = bch2_opt_parse(c, opt, buf, &v, NULL); kfree(buf); if (ret < 0) |