Skip to content

Commit 89edfcf

Browse files
author
Kent Overstreet
committed
bcachefs: Fix bch2_maybe_casefold() when CONFIG_UTF8=n
maybe_casefold() shouldn't have been nooped, just bch2_casefold(). Fixes: 94426e4 ("bcachefs: opts.casefold_disabled") Signed-off-by: Kent Overstreet <[email protected]>
1 parent 40c35a0 commit 89edfcf

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

fs/bcachefs/dirent.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ struct bch_inode_info;
2626
#ifdef CONFIG_UNICODE
2727
int bch2_casefold(struct btree_trans *, const struct bch_hash_info *,
2828
const struct qstr *, struct qstr *);
29+
#else
30+
static inline int bch2_casefold(struct btree_trans *trans, const struct bch_hash_info *info,
31+
const struct qstr *str, struct qstr *out_cf)
32+
{
33+
return -EOPNOTSUPP;
34+
}
35+
#endif
2936

3037
static inline int bch2_maybe_casefold(struct btree_trans *trans,
3138
const struct bch_hash_info *info,
@@ -38,14 +45,6 @@ static inline int bch2_maybe_casefold(struct btree_trans *trans,
3845
return bch2_casefold(trans, info, str, out_cf);
3946
}
4047
}
41-
#else
42-
static inline int bch2_maybe_casefold(struct btree_trans *trans,
43-
const struct bch_hash_info *info,
44-
const struct qstr *str, struct qstr *out_cf)
45-
{
46-
return -EOPNOTSUPP;
47-
}
48-
#endif
4948

5049
struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent);
5150

0 commit comments

Comments
 (0)