1 #ifndef _BCACHE_DIRENT_H
2 #define _BCACHE_DIRENT_H
6 extern const struct bch_hash_desc bch2_dirent_hash_desc;
7 extern const struct bkey_ops bch2_bkey_dirent_ops;
15 unsigned bch2_dirent_name_bytes(struct bkey_s_c_dirent);
16 int bch2_dirent_create(struct bch_fs *c, u64, const struct bch_hash_info *,
17 u8, const struct qstr *, u64, u64 *, int);
18 int bch2_dirent_delete(struct bch_fs *, u64, const struct bch_hash_info *,
19 const struct qstr *, u64 *);
21 enum bch_rename_mode {
27 int bch2_dirent_rename(struct bch_fs *,
28 struct inode *, const struct qstr *,
29 struct inode *, const struct qstr *,
30 u64 *, enum bch_rename_mode);
32 u64 bch2_dirent_lookup(struct bch_fs *, u64, const struct bch_hash_info *,
35 int bch2_empty_dir(struct bch_fs *, u64);
36 int bch2_readdir(struct bch_fs *, struct file *, struct dir_context *);
38 #endif /* _BCACHE_DIRENT_H */