summaryrefslogtreecommitdiff
path: root/include/linux/dcache.h
blob: b569b2c195224d9003242db8d163eba855d099b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __LINUX_DCACHE_H
#define __LINUX_DCACHE_H

struct super_block;
struct inode;

/* The hash is always the low bits of hash_len */
#ifdef __LITTLE_ENDIAN
 #define HASH_LEN_DECLARE u32 hash; u32 len
#else
 #define HASH_LEN_DECLARE u32 len; u32 hash
#endif

struct qstr {
	union {
		struct {
			HASH_LEN_DECLARE;
		};
		u64 hash_len;
	};
	const unsigned char *name;
};

#define QSTR_INIT(n,l) { { { .len = l } }, .name = n }

struct dentry {
	struct super_block *d_sb;
	struct inode *d_inode;
};

#endif	/* __LINUX_DCACHE_H */