summaryrefslogtreecommitdiff
path: root/fs/bcachefs/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r--fs/bcachefs/inode.h22
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)
{