diff options
author | Joshua Ashton <joshua@froggi.es> | 2023-08-12 22:26:29 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:10 -0400 |
commit | 01a7e74fe14179cba90bf3f52ad3188a1d6819d2 (patch) | |
tree | 494b7ca69d8ba0ebf9ebff827d9b8b53319ca481 /fs/bcachefs/dirent.h | |
parent | f854ce4d0a3f7281b5b99b28dd028abe21c1b0c8 (diff) | |
download | linux-stable-01a7e74fe14179cba90bf3f52ad3188a1d6819d2.tar.gz linux-stable-01a7e74fe14179cba90bf3f52ad3188a1d6819d2.tar.bz2 linux-stable-01a7e74fe14179cba90bf3f52ad3188a1d6819d2.zip |
bcachefs: Introduce bch2_dirent_get_name
A nice cleanup that avoids a bunch of open-coding name/string usage
around dirent usage.
Will be used by casefolding impl in future commits.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/dirent.h')
-rw-r--r-- | fs/bcachefs/dirent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/dirent.h b/fs/bcachefs/dirent.h index b42f4a13bc55..e9fa1df38232 100644 --- a/fs/bcachefs/dirent.h +++ b/fs/bcachefs/dirent.h @@ -24,7 +24,7 @@ struct bch_fs; struct bch_hash_info; struct bch_inode_info; -unsigned bch2_dirent_name_bytes(struct bkey_s_c_dirent); +struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent d); static inline unsigned dirent_val_u64s(unsigned len) { |