diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-07 03:16:10 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:06 +0200 |
commit | 8726dc936fb79fda4a0280033cdd180f7f343cdd (patch) | |
tree | f0fe5bddcf6dc498b6bb16f9b1110078aabdf4a0 /fs/bcachefs/quota.h | |
parent | bcachefs: Assorted sparse fixes (diff) | |
download | linux-8726dc936fb79fda4a0280033cdd180f7f343cdd.tar.xz linux-8726dc936fb79fda4a0280033cdd180f7f343cdd.zip |
bcachefs: Change check for invalid key types
As part of the forward compatibility patch series, we need to allow for
new key types without complaining loudly when running an old version.
This patch changes the flags parameter of bkey_invalid to an enum, and
adds a new flag to indicate we're being called from the transaction
commit path.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/quota.h')
-rw-r--r-- | fs/bcachefs/quota.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/quota.h b/fs/bcachefs/quota.h index b0f7d4ee775e..2f463874a362 100644 --- a/fs/bcachefs/quota.h +++ b/fs/bcachefs/quota.h @@ -5,9 +5,11 @@ #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) { \ |