diff options
-rw-r--r-- | fs/bcachefs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index a17a952ea161..ee0080507855 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -856,6 +856,9 @@ void bch2_inode_init_late(struct bch_inode_unpacked *inode_u, u64 now, BCH_INODE_OPTS() #undef x } + + if (!S_ISDIR(mode)) + inode_u->bi_casefold = 0; } void bch2_inode_init(struct bch_fs *c, struct bch_inode_unpacked *inode_u, |