Lines Matching refs:header
265 __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header, in __xattr_check_inode() argument
270 if (end - (void *)header < sizeof(*header) + sizeof(u32) || in __xattr_check_inode()
271 (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC))) in __xattr_check_inode()
273 error = ext4_xattr_check_entries(IFIRST(header), end, IFIRST(header)); in __xattr_check_inode()
281 #define xattr_check_inode(inode, header, end) \ argument
282 __xattr_check_inode((inode), (header), (end), __func__, __LINE__)
585 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_get() local
599 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get()
601 error = xattr_check_inode(inode, header, end); in ext4_xattr_ibody_get()
604 entry = IFIRST(header); in ext4_xattr_ibody_get()
622 void *p = (void *)IFIRST(header) + offset; in ext4_xattr_ibody_get()
732 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_list() local
744 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list()
746 error = xattr_check_inode(inode, header, end); in ext4_xattr_ibody_list()
749 error = ext4_xattr_list_entries(dentry, IFIRST(header), in ext4_xattr_ibody_list()
813 struct ext4_xattr_ibody_header *header; in ext4_get_inode_usage() local
826 header = IHDR(inode, raw_inode); in ext4_get_inode_usage()
828 ret = xattr_check_inode(inode, header, end); in ext4_get_inode_usage()
832 for (entry = IFIRST(header); !IS_LAST_ENTRY(entry); in ext4_get_inode_usage()
1895 #define header(x) ((struct ext4_xattr_header *)(x)) in ext4_xattr_block_set() macro
1906 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext4_xattr_block_set()
1950 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
1951 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
1991 header(s->base)->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_block_set()
1992 header(s->base)->h_blocks = cpu_to_le32(1); in ext4_xattr_block_set()
1993 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
1994 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
1995 s->here = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
2024 new_bh = ext4_xattr_block_cache_find(inode, header(s->base), in ext4_xattr_block_set()
2119 ENTRY(header(s->base)+1)); in ext4_xattr_block_set()
2202 #undef header in ext4_xattr_block_set()
2208 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_find() local
2216 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_find()
2217 is->s.base = is->s.first = IFIRST(header); in ext4_xattr_ibody_find()
2221 error = xattr_check_inode(inode, header, is->s.end); in ext4_xattr_ibody_find()
2238 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_set() local
2248 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_set()
2250 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_set()
2253 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_set()
2570 struct ext4_xattr_ibody_header *header = IHDR(inode, raw_inode); in ext4_xattr_move_to_block() local
2600 buffer = (void *)IFIRST(header) + value_offs; in ext4_xattr_move_to_block()
2650 struct ext4_xattr_ibody_header *header = IHDR(inode, raw_inode); in ext4_xattr_make_inode_space() local
2663 last = IFIRST(header); in ext4_xattr_make_inode_space()
2717 struct ext4_xattr_ibody_header *header; in ext4_expand_extra_isize_ea() local
2733 header = IHDR(inode, raw_inode); in ext4_expand_extra_isize_ea()
2740 base = IFIRST(header); in ext4_expand_extra_isize_ea()
2745 error = xattr_check_inode(inode, header, end); in ext4_expand_extra_isize_ea()
2803 ext4_xattr_shift_entries(IFIRST(header), EXT4_I(inode)->i_extra_isize in ext4_expand_extra_isize_ea()
2806 (void *)header, total_ino); in ext4_expand_extra_isize_ea()
2879 struct ext4_xattr_ibody_header *header; in ext4_xattr_delete_inode() local
2910 header = IHDR(inode, ext4_raw_inode(&iloc)); in ext4_xattr_delete_inode()
2911 if (header->h_magic == cpu_to_le32(EXT4_XATTR_MAGIC)) in ext4_xattr_delete_inode()
2913 IFIRST(header), in ext4_xattr_delete_inode()
2997 struct ext4_xattr_header *header = BHDR(bh); in ext4_xattr_block_cache_insert() local
2998 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_insert()
2999 int reusable = le32_to_cpu(header->h_refcount) < in ext4_xattr_block_cache_insert()
3064 struct ext4_xattr_header *header, in ext4_xattr_block_cache_find() argument
3067 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_find()
3073 if (!header->h_hash) in ext4_xattr_block_cache_find()
3087 } else if (ext4_xattr_cmp(header, BHDR(bh)) == 0) { in ext4_xattr_block_cache_find()
3133 static void ext4_xattr_rehash(struct ext4_xattr_header *header) in ext4_xattr_rehash() argument
3138 here = ENTRY(header+1); in ext4_xattr_rehash()
3150 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()