Lines Matching refs:header
213 struct ext4_xattr_ibody_header *header = value_start; in check_xattrs() local
215 header -= 1; in check_xattrs()
216 if (end - (void *)header < sizeof(*header) + sizeof(u32)) { in check_xattrs()
220 if (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC)) { in check_xattrs()
312 __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header, in __xattr_check_inode() argument
315 return check_xattrs(inode, NULL, IFIRST(header), end, IFIRST(header), in __xattr_check_inode()
634 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_get() local
648 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get()
650 entry = IFIRST(header); in ext4_xattr_ibody_get()
668 void *p = (void *)IFIRST(header) + offset; in ext4_xattr_ibody_get()
777 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_list() local
788 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list()
789 error = ext4_xattr_list_entries(dentry, IFIRST(header), in ext4_xattr_ibody_list()
856 struct ext4_xattr_ibody_header *header; in ext4_get_inode_usage() local
868 header = IHDR(inode, raw_inode); in ext4_get_inode_usage()
870 for (entry = IFIRST(header); !IS_LAST_ENTRY(entry); in ext4_get_inode_usage()
1902 #define header(x) ((struct ext4_xattr_header *)(x)) in ext4_xattr_block_set() macro
1928 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext4_xattr_block_set()
1972 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
1973 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
2012 header(s->base)->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_block_set()
2013 header(s->base)->h_blocks = cpu_to_le32(1); in ext4_xattr_block_set()
2014 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
2015 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
2016 s->here = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
2029 new_bh = ext4_xattr_block_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
2130 ENTRY(header(s->base)+1)); in ext4_xattr_block_set()
2213 #undef header in ext4_xattr_block_set()
2219 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_find() local
2227 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_find()
2228 is->s.base = is->s.first = IFIRST(header); in ext4_xattr_ibody_find()
2246 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_set() local
2280 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_set()
2282 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_set()
2285 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_set()
2607 struct ext4_xattr_ibody_header *header = IHDR(inode, raw_inode); in ext4_xattr_move_to_block() local
2637 buffer = (void *)IFIRST(header) + value_offs; in ext4_xattr_move_to_block()
2687 struct ext4_xattr_ibody_header *header = IHDR(inode, raw_inode); in ext4_xattr_make_inode_space() local
2700 last = IFIRST(header); in ext4_xattr_make_inode_space()
2754 struct ext4_xattr_ibody_header *header; in ext4_expand_extra_isize_ea() local
2770 header = IHDR(inode, raw_inode); in ext4_expand_extra_isize_ea()
2777 base = IFIRST(header); in ext4_expand_extra_isize_ea()
2836 ext4_xattr_shift_entries(IFIRST(header), EXT4_I(inode)->i_extra_isize in ext4_expand_extra_isize_ea()
2839 (void *)header, total_ino); in ext4_expand_extra_isize_ea()
2910 struct ext4_xattr_ibody_header *header; in ext4_xattr_delete_inode() local
2940 header = IHDR(inode, ext4_raw_inode(&iloc)); in ext4_xattr_delete_inode()
2941 if (header->h_magic == cpu_to_le32(EXT4_XATTR_MAGIC)) in ext4_xattr_delete_inode()
2943 IFIRST(header), in ext4_xattr_delete_inode()
3028 struct ext4_xattr_header *header = BHDR(bh); in ext4_xattr_block_cache_insert() local
3029 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_insert()
3030 int reusable = le32_to_cpu(header->h_refcount) < in ext4_xattr_block_cache_insert()
3094 struct ext4_xattr_header *header, in ext4_xattr_block_cache_find() argument
3097 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_find()
3103 if (!header->h_hash) in ext4_xattr_block_cache_find()
3117 } else if (ext4_xattr_cmp(header, BHDR(bh)) == 0) { in ext4_xattr_block_cache_find()
3185 static void ext4_xattr_rehash(struct ext4_xattr_header *header) in ext4_xattr_rehash() argument
3190 here = ENTRY(header+1); in ext4_xattr_rehash()
3202 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()