diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-03 15:53:44 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-30 17:43:54 -0400 |
commit | 29362082ffff50f37e643086ab7ef718f595bc1f (patch) | |
tree | 0a5a430079623abc788fd07852f52d6fc8ce7428 | |
parent | 92c82171bc01d37d35e19992cd7c2ddb72894fcb (diff) |
bcachefs: Allow CONFIG_UNICODE=m
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/bcachefs.h | 2 | ||||
-rw-r--r-- | fs/bcachefs/inode.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/super.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index ddfacad0f70c..f4edbe2a14fd 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -1285,7 +1285,7 @@ static inline bool bch2_discard_opt_enabled(struct bch_fs *c, struct bch_dev *ca static inline bool bch2_fs_casefold_enabled(struct bch_fs *c) { -#ifdef CONFIG_UNICODE +#if IS_ENABLED(CONFIG_UNICODE) return !c->opts.casefold_disabled; #else return false; diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index ef4cc7395b86..6e08c7a26f4d 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -1265,7 +1265,7 @@ int bch2_inode_set_casefold(struct btree_trans *trans, subvol_inum inum, { struct bch_fs *c = trans->c; -#ifndef CONFIG_UNICODE +#if !IS_ENABLED(CONFIG_UNICODE) bch_err(c, "Cannot use casefolding on a kernel without CONFIG_UNICODE"); return -EOPNOTSUPP; #endif diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 54316abe09df..1b8d8d82ee25 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -585,7 +585,7 @@ static void __bch2_fs_free(struct bch_fs *c) for (unsigned i = 0; i < BCH_TIME_STAT_NR; i++) bch2_time_stats_exit(&c->times[i]); -#ifdef CONFIG_UNICODE +#if IS_ENABLED(CONFIG_UNICODE) utf8_unload(c->cf_encoding); #endif @@ -1024,7 +1024,7 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts *opts, goto err; } -#ifndef CONFIG_UNICODE +#if !IS_ENABLED(CONFIG_UNICODE) if (c->sb.features & BIT_ULL(BCH_FEATURE_casefolding)) { printk(KERN_ERR "Cannot mount a filesystem with casefolding on a kernel without CONFIG_UNICODE\n"); ret = -EINVAL; |