diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-14 11:35:20 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-14 11:35:20 -0500 |
commit | 6b039139946b3462558da7c34a363f885a2eebb3 (patch) | |
tree | 9c56834aa5215d24768b21d4683f6ad68d033a01 /fs/bcachefs/inode.h | |
parent | db3032691af4b570054ef5c79ff35a8d0d61ab16 (diff) |
transfer quotas when bi_project changesquota
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r-- | fs/bcachefs/inode.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h index e50e788369bc..0d609985d15b 100644 --- a/fs/bcachefs/inode.h +++ b/fs/bcachefs/inode.h @@ -89,19 +89,13 @@ static inline struct bch_io_opts bch2_inode_opts_get(struct bch_inode_unpacked * return ret; } -/* XXX switch to inode_opt_id */ - -static inline void __bch2_inode_opt_set(struct bch_inode_unpacked *inode, - enum inode_opt_id id, u64 v) +static inline void bch2_inode_opt_set(struct bch_inode_unpacked *inode, + enum inode_opt_id id, u64 v) { switch (id) { #define x(_name, ...) \ case Inode_opt_##_name: \ inode->bi_##_name = v; \ - if (v) \ - inode->bi_fields_set |= 1U << Inode_opt_##_name;\ - else \ - inode->bi_fields_set &= ~(1U << Inode_opt_##_name);\ break; BCH_INODE_OPTS() #undef x @@ -110,18 +104,6 @@ static inline void __bch2_inode_opt_set(struct bch_inode_unpacked *inode, } } -static inline void bch2_inode_opt_set(struct bch_inode_unpacked *inode, - enum inode_opt_id id, u64 v) -{ - return __bch2_inode_opt_set(inode, id, v + 1); -} - -static inline void bch2_inode_opt_clear(struct bch_inode_unpacked *inode, - enum inode_opt_id id) -{ - return __bch2_inode_opt_set(inode, id, 0); -} - static inline u64 bch2_inode_opt_get(struct bch_inode_unpacked *inode, enum inode_opt_id id) { |