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