summaryrefslogtreecommitdiff
path: root/libbcachefs/quota.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-11-20 00:15:11 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2022-11-20 00:15:11 -0500
commitf1f88825c371f84edb85a156de5e1962503d23b2 (patch)
treefa9336aedc01b4fe8fbf3744e4ff77e496e6cdad /libbcachefs/quota.c
parent7e0fbb0144960197a53f188908afdf85cf15f446 (diff)
Update bcachefs sources to ea47add37d bcachefs: More errcode cleanup
Diffstat (limited to 'libbcachefs/quota.c')
-rw-r--r--libbcachefs/quota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/quota.c b/libbcachefs/quota.c
index 7f74c026..ededc826 100644
--- a/libbcachefs/quota.c
+++ b/libbcachefs/quota.c
@@ -26,7 +26,7 @@ static int bch2_sb_quota_validate(struct bch_sb *sb, struct bch_sb_field *f,
if (vstruct_bytes(&q->field) < sizeof(*q)) {
prt_printf(err, "wrong size (got %zu should be %zu)",
vstruct_bytes(&q->field), sizeof(*q));
- return -EINVAL;
+ return -BCH_ERR_invalid_sb_quota;
}
return 0;
@@ -64,13 +64,13 @@ int bch2_quota_invalid(const struct bch_fs *c, struct bkey_s_c k,
if (k.k->p.inode >= QTYP_NR) {
prt_printf(err, "invalid quota type (%llu >= %u)",
k.k->p.inode, QTYP_NR);
- return -EINVAL;
+ return -BCH_ERR_invalid_bkey;
}
if (bkey_val_bytes(k.k) != sizeof(struct bch_quota)) {
prt_printf(err, "incorrect value size (%zu != %zu)",
bkey_val_bytes(k.k), sizeof(struct bch_quota));
- return -EINVAL;
+ return -BCH_ERR_invalid_bkey;
}
return 0;