diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dcache.h | 19 | ||||
-rw-r--r-- | include/linux/kernel.h | 19 |
2 files changed, 19 insertions, 19 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 15b803ea..7637854d 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -4,25 +4,6 @@ struct super_block; struct inode; -/* The hash is always the low bits of hash_len */ -#if __BYTE_ORDER__ == __ORDER_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; diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b6afea43..a4c8149e 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -222,4 +222,23 @@ static inline int __must_check kstrtos32(const char *s, unsigned int base, s32 * BUILD_BUG_ON_ZERO((perms) & 2) + \ (perms)) +/* The hash is always the low bits of hash_len */ +#if __BYTE_ORDER__ == __ORDER_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 } + #endif |