diff options
Diffstat (limited to 'libbcachefs/dirent.h')
-rw-r--r-- | libbcachefs/dirent.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbcachefs/dirent.h b/libbcachefs/dirent.h index 1e17199c..373d382b 100644 --- a/libbcachefs/dirent.h +++ b/libbcachefs/dirent.h @@ -23,6 +23,7 @@ struct bch_fs; struct bch_hash_info; struct bch_inode_info; +#if IS_ENABLED(CONFIG_UNICODE) int bch2_casefold(struct btree_trans *, const struct bch_hash_info *, const struct qstr *, struct qstr *); @@ -37,6 +38,14 @@ 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 bch_err_throw(trans->c, no_casefolding_without_utf8); +} +#endif struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent); |