]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/dcache.h
bcache in userspace; userspace fsck
[bcachefs-tools-debian] / include / linux / dcache.h
1 #ifndef __LINUX_DCACHE_H
2 #define __LINUX_DCACHE_H
3
4 struct super_block;
5 struct inode;
6
7 /* The hash is always the low bits of hash_len */
8 #ifdef __LITTLE_ENDIAN
9  #define HASH_LEN_DECLARE u32 hash; u32 len
10 #else
11  #define HASH_LEN_DECLARE u32 len; u32 hash
12 #endif
13
14 struct qstr {
15         union {
16                 struct {
17                         HASH_LEN_DECLARE;
18                 };
19                 u64 hash_len;
20         };
21         const unsigned char *name;
22 };
23
24 #define QSTR_INIT(n,l) { { { .len = l } }, .name = n }
25
26 struct dentry {
27         struct super_block *d_sb;
28         struct inode *d_inode;
29 };
30
31 #endif  /* __LINUX_DCACHE_H */