diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-16 17:31:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-16 17:32:33 -0400 |
commit | 89edfcf710875feedc4264a6c9c4e7fb55486422 (patch) | |
tree | aa70af9ed3e3d687c9ff9ea207ffa96c15ff0c05 | |
parent | 40c35a0b476197419a19aaa1f76e83d0b8874921 (diff) |
bcachefs: Fix bch2_maybe_casefold() when CONFIG_UTF8=nbcachefs-2025-07-17
maybe_casefold() shouldn't have been nooped, just bch2_casefold().
Fixes: 94426e4201fb ("bcachefs: opts.casefold_disabled")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/dirent.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/bcachefs/dirent.h b/fs/bcachefs/dirent.h index 2e9cbf8123c4..0417608c18d5 100644 --- a/fs/bcachefs/dirent.h +++ b/fs/bcachefs/dirent.h @@ -26,6 +26,13 @@ struct bch_inode_info; #ifdef CONFIG_UNICODE int bch2_casefold(struct btree_trans *, const struct bch_hash_info *, const struct qstr *, struct qstr *); +#else +static inline int bch2_casefold(struct btree_trans *trans, const struct bch_hash_info *info, + const struct qstr *str, struct qstr *out_cf) +{ + return -EOPNOTSUPP; +} +#endif static inline int bch2_maybe_casefold(struct btree_trans *trans, const struct bch_hash_info *info, @@ -38,14 +45,6 @@ static inline int bch2_maybe_casefold(struct btree_trans *trans, return bch2_casefold(trans, info, str, out_cf); } } -#else -static inline int bch2_maybe_casefold(struct btree_trans *trans, - const struct bch_hash_info *info, - const struct qstr *str, struct qstr *out_cf) -{ - return -EOPNOTSUPP; -} -#endif struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent); |