Lines Matching refs:header
329 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_get() local
343 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get()
344 entry = IFIRST(header); in ext4_xattr_ibody_get()
358 memcpy(buffer, (void *)IFIRST(header) + in ext4_xattr_ibody_get()
464 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_list() local
476 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list()
478 error = ext4_xattr_check_names(IFIRST(header), end, IFIRST(header)); in ext4_xattr_ibody_list()
481 error = ext4_xattr_list_entries(dentry, IFIRST(header), in ext4_xattr_ibody_list()
786 #define header(x) ((struct ext4_xattr_header *)(x)) in ext4_xattr_block_set() macro
799 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext4_xattr_block_set()
808 ext4_xattr_rehash(header(s->base), in ext4_xattr_block_set()
837 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
838 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
849 header(s->base)->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_block_set()
850 header(s->base)->h_blocks = cpu_to_le32(1); in ext4_xattr_block_set()
851 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
852 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
853 s->here = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
863 ext4_xattr_rehash(header(s->base), s->here); in ext4_xattr_block_set()
867 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
976 #undef header in ext4_xattr_block_set()
982 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_find() local
989 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_find()
990 is->s.base = is->s.first = IFIRST(header); in ext4_xattr_ibody_find()
994 error = ext4_xattr_check_names(IFIRST(header), is->s.end, in ext4_xattr_ibody_find()
995 IFIRST(header)); in ext4_xattr_ibody_find()
1013 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_inline_set() local
1036 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_inline_set()
1038 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_inline_set()
1041 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_inline_set()
1051 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_set() local
1060 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_set()
1062 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_set()
1065 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_set()
1259 struct ext4_xattr_ibody_header *header; in ext4_expand_extra_isize_ea() local
1278 header = IHDR(inode, raw_inode); in ext4_expand_extra_isize_ea()
1279 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1294 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1298 (void *)header, total_ino, in ext4_expand_extra_isize_ea()
1362 last = IFIRST(header); in ext4_expand_extra_isize_ea()
1407 memcpy(buffer, (void *)IFIRST(header) + offs, in ext4_expand_extra_isize_ea()
1426 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1435 (void *)header, total_ino - entry_size, in ext4_expand_extra_isize_ea()
1605 ext4_xattr_cache_find(struct inode *inode, struct ext4_xattr_header *header, in ext4_xattr_cache_find() argument
1608 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_cache_find()
1612 if (!header->h_hash) in ext4_xattr_cache_find()
1636 } else if (ext4_xattr_cmp(header, BHDR(bh)) == 0) { in ext4_xattr_cache_find()
1654 static inline void ext4_xattr_hash_entry(struct ext4_xattr_header *header, in ext4_xattr_hash_entry() argument
1668 __le32 *value = (__le32 *)((char *)header + in ext4_xattr_hash_entry()
1690 static void ext4_xattr_rehash(struct ext4_xattr_header *header, in ext4_xattr_rehash() argument
1696 ext4_xattr_hash_entry(header, entry); in ext4_xattr_rehash()
1697 here = ENTRY(header+1); in ext4_xattr_rehash()
1709 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()