diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-12 18:30:55 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:11 -0400 |
commit | c258f28ebab6be176f20173aac725092b39cbd2c (patch) | |
tree | c027b4670d7750d35233dc7cc47e5d56cf012302 /fs/bcachefs/xattr.c | |
parent | 319f9ac38eaba628d69b6ddbf402b35487315fc1 (diff) |
bcachefs: Check for unsupported features
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/xattr.c')
-rw-r--r-- | fs/bcachefs/xattr.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c index 7f6258e09a0d..ab358c434753 100644 --- a/fs/bcachefs/xattr.c +++ b/fs/bcachefs/xattr.c @@ -3,7 +3,6 @@ #include "bcachefs.h" #include "bkey_methods.h" #include "btree_update.h" -#include "compress.h" #include "extents.h" #include "fs.h" #include "rebalance.h" @@ -433,12 +432,9 @@ static int bch2_xattr_bcachefs_set(const struct xattr_handler *handler, if (ret < 0) return ret; - if (s.id == Opt_compression || - s.id == Opt_background_compression) { - ret = bch2_check_set_has_compressed_data(c, s.v); - if (ret) - return ret; - } + ret = bch2_opt_check_may_set(c, s.id, s.v); + if (ret < 0) + return ret; s.defined = true; } else { |