diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-02 16:42:48 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-05 19:12:18 +0100 |
commit | 103ffe9aaf85660f40c8b68797a374b80b29b91d (patch) | |
tree | 7af0c930701f3d8849a100e7af5a162f10e90d07 /fs/bcachefs/io_write.c | |
parent | bcachefs: Convert bch2_fs_open() to darray (diff) | |
download | linux-103ffe9aaf85660f40c8b68797a374b80b29b91d.tar.xz linux-103ffe9aaf85660f40c8b68797a374b80b29b91d.zip |
bcachefs: x-macro-ify inode flags enum
This lets us use bch2_prt_bitflags to print them out.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_write.c')
-rw-r--r-- | fs/bcachefs/io_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_write.c b/fs/bcachefs/io_write.c index 4eb0eda723ab..f02b3f7d26a0 100644 --- a/fs/bcachefs/io_write.c +++ b/fs/bcachefs/io_write.c @@ -234,7 +234,7 @@ static inline int bch2_extent_update_i_size_sectors(struct btree_trans *trans, inode = bkey_i_to_inode_v3(k); - if (!(le64_to_cpu(inode->v.bi_flags) & BCH_INODE_I_SIZE_DIRTY) && + if (!(le64_to_cpu(inode->v.bi_flags) & BCH_INODE_i_size_dirty) && new_i_size > le64_to_cpu(inode->v.bi_size)) { inode->v.bi_size = cpu_to_le64(new_i_size); inode_update_flags = 0; |