quota.c (c72f687a1ff1801b404fab804fdddcaf034e6ef4) | quota.c (facafdcbc157686311dbe58649ef9d29fcf8e610) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include "bcachefs.h" 3#include "btree_update.h" 4#include "errcode.h" 5#include "inode.h" 6#include "quota.h" 7#include "subvolume.h" 8#include "super-io.h" --- 45 unchanged lines hidden (view full) --- 54} 55 56const struct bch_sb_field_ops bch_sb_field_ops_quota = { 57 .validate = bch2_sb_quota_validate, 58 .to_text = bch2_sb_quota_to_text, 59}; 60 61int bch2_quota_invalid(const struct bch_fs *c, struct bkey_s_c k, | 1// SPDX-License-Identifier: GPL-2.0 2#include "bcachefs.h" 3#include "btree_update.h" 4#include "errcode.h" 5#include "inode.h" 6#include "quota.h" 7#include "subvolume.h" 8#include "super-io.h" --- 45 unchanged lines hidden (view full) --- 54} 55 56const struct bch_sb_field_ops bch_sb_field_ops_quota = { 57 .validate = bch2_sb_quota_validate, 58 .to_text = bch2_sb_quota_to_text, 59}; 60 61int bch2_quota_invalid(const struct bch_fs *c, struct bkey_s_c k, |
62 int rw, struct printbuf *err) | 62 unsigned flags, struct printbuf *err) |
63{ 64 if (k.k->p.inode >= QTYP_NR) { 65 prt_printf(err, "invalid quota type (%llu >= %u)", 66 k.k->p.inode, QTYP_NR); 67 return -BCH_ERR_invalid_bkey; 68 } 69 70 if (bkey_val_bytes(k.k) != sizeof(struct bch_quota)) { --- 907 unchanged lines hidden --- | 63{ 64 if (k.k->p.inode >= QTYP_NR) { 65 prt_printf(err, "invalid quota type (%llu >= %u)", 66 k.k->p.inode, QTYP_NR); 67 return -BCH_ERR_invalid_bkey; 68 } 69 70 if (bkey_val_bytes(k.k) != sizeof(struct bch_quota)) { --- 907 unchanged lines hidden --- |