]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/xattr.h
Update bcachefs sources to ed6b7f81a7 six locks: Disable percpu read lock mode in...
[bcachefs-tools-debian] / libbcachefs / xattr.h
index f4f896545e1c29f0ff35018263bf6b227250567b..b3e16729bcbba472f15302a3c3bb0b560330c8ce 100644 (file)
@@ -6,13 +6,14 @@
 
 extern const struct bch_hash_desc bch2_xattr_hash_desc;
 
-const char *bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c);
+int bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *);
 void bch2_xattr_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
 
-#define bch2_bkey_ops_xattr (struct bkey_ops) {                \
+#define bch2_bkey_ops_xattr ((struct bkey_ops) {       \
        .key_invalid    = bch2_xattr_invalid,           \
        .val_to_text    = bch2_xattr_to_text,           \
-}
+       .min_val_size   = 8,                            \
+})
 
 static inline unsigned xattr_val_u64s(unsigned name_len, unsigned val_len)
 {