X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libbcachefs%2Fquota.h;h=2f463874a3628238fb62c17f341d698f4fc3f3e6;hb=1e358401ecdf1963e5799de19ab69111e82e5ebc;hp=146264fd16ce0bf24a5dafe285b4921b0355d79f;hpb=a104f0407b7f5de54972389ef10e11dd8c525a96;p=bcachefs-tools-debian diff --git a/libbcachefs/quota.h b/libbcachefs/quota.h index 146264f..2f46387 100644 --- a/libbcachefs/quota.h +++ b/libbcachefs/quota.h @@ -5,14 +5,17 @@ #include "inode.h" #include "quota_types.h" +enum bkey_invalid_flags; extern const struct bch_sb_field_ops bch_sb_field_ops_quota; -int bch2_quota_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *); +int bch2_quota_invalid(const struct bch_fs *, struct bkey_s_c, + enum bkey_invalid_flags, struct printbuf *); void bch2_quota_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); #define bch2_bkey_ops_quota ((struct bkey_ops) { \ .key_invalid = bch2_quota_invalid, \ .val_to_text = bch2_quota_to_text, \ + .min_val_size = 32, \ }) static inline struct bch_qid bch_qid(struct bch_inode_unpacked *u)