Lines Matching refs:HDR

68 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data))  macro
70 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1)
177 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_get()
179 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_get()
180 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_get()
267 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_list()
269 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_list()
270 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()
512 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set()
604 if (bh && header == HDR(bh)) in ext2_xattr_set()
609 if (bh && header == HDR(bh)) in ext2_xattr_set()
616 if (!(bh && header == HDR(bh))) in ext2_xattr_set()
651 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2()
653 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2()
656 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
720 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
721 __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash); in ext2_xattr_set2()
739 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
744 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
786 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_delete_inode()
787 HDR(bh)->h_blocks != cpu_to_le32(1)) { in ext2_xattr_delete_inode()
794 if (HDR(bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_delete_inode()
795 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_delete_inode()
808 le32_add_cpu(&HDR(bh)->h_refcount, -1); in ext2_xattr_delete_inode()
810 le32_to_cpu(HDR(bh)->h_refcount)); in ext2_xattr_delete_inode()
835 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); in ext2_xattr_cache_insert()
934 } else if (le32_to_cpu(HDR(bh)->h_refcount) > in ext2_xattr_cache_find()
938 le32_to_cpu(HDR(bh)->h_refcount), in ext2_xattr_cache_find()
940 } else if (!ext2_xattr_cmp(header, HDR(bh))) { in ext2_xattr_cache_find()