Lines Matching refs:HDR
69 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data)) macro
71 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1)
225 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_get()
227 if (!ext2_xattr_header_valid(HDR(bh))) { in ext2_xattr_get()
311 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_list()
313 if (!ext2_xattr_header_valid(HDR(bh))) { in ext2_xattr_list()
452 le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_set()
453 header = HDR(bh); in ext2_xattr_set()
539 header = kmemdup(HDR(bh), bh->b_size, GFP_KERNEL); in ext2_xattr_set()
635 if (bh && header == HDR(bh)) in ext2_xattr_set()
640 if (bh && header == HDR(bh)) in ext2_xattr_set()
646 if (!(bh && header == HDR(bh))) in ext2_xattr_set()
682 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2()
684 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2()
687 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
751 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
752 __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash); in ext2_xattr_set2()
770 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
775 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
825 if (!ext2_xattr_header_valid(HDR(bh))) { in ext2_xattr_delete_inode()
832 if (HDR(bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_delete_inode()
833 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_delete_inode()
846 le32_add_cpu(&HDR(bh)->h_refcount, -1); in ext2_xattr_delete_inode()
848 le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_delete_inode()
873 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_cache_insert()
972 } else if (le32_to_cpu(HDR(bh)->h_refcount) > in ext2_xattr_cache_find()
976 le32_to_cpu(HDR(bh)->h_refcount), in ext2_xattr_cache_find()
978 } else if (!ext2_xattr_cmp(header, HDR(bh))) { in ext2_xattr_cache_find()