summaryrefslogtreecommitdiff
path: root/libbcachefs/xattr.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-11-12 19:20:40 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-11-12 19:22:36 -0500
commitcc6479303f0672d5e07899009c64eb32821e170b (patch)
tree2aacceb0e1d623226c03703837386612ed8f76e1 /libbcachefs/xattr.c
parentbdba182d105b1eaa9776c78a094b0b0192046651 (diff)
Update bcachefs sources to a9f14c773f bcachefs: More btree gc refactorings
Diffstat (limited to 'libbcachefs/xattr.c')
-rw-r--r--libbcachefs/xattr.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libbcachefs/xattr.c b/libbcachefs/xattr.c
index ed62668..31f3b98 100644
--- a/libbcachefs/xattr.c
+++ b/libbcachefs/xattr.c
@@ -2,7 +2,6 @@
#include "bcachefs.h"
#include "bkey_methods.h"
#include "btree_update.h"
-#include "compress.h"
#include "extents.h"
#include "fs.h"
#include "rebalance.h"
@@ -430,12 +429,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 {