Lines Matching refs:HDR
67 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data)) macro
69 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1)
173 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_get()
175 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_get()
176 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_get()
273 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_list()
275 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_list()
276 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_list()
405 le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_set()
406 header = HDR(bh); in ext2_xattr_set()
511 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set()
603 if (bh && header == HDR(bh)) in ext2_xattr_set()
608 if (bh && header == HDR(bh)) in ext2_xattr_set()
615 if (!(bh && header == HDR(bh))) in ext2_xattr_set()
649 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2()
651 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2()
654 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
719 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
731 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
737 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
771 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_delete_inode()
772 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_delete_inode()
780 if (HDR(bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_delete_inode()
788 le32_add_cpu(&HDR(bh)->h_refcount, -1); in ext2_xattr_delete_inode()
792 le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_delete_inode()
829 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_cache_insert()
928 if (le32_to_cpu(HDR(bh)->h_refcount) > in ext2_xattr_cache_find()
932 le32_to_cpu(HDR(bh)->h_refcount), in ext2_xattr_cache_find()
934 } else if (!ext2_xattr_cmp(header, HDR(bh))) { in ext2_xattr_cache_find()