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))) {
451 le32_to_cpu(HDR(bh)->h_refcount));
452 header = HDR(bh);
539 header = kmemdup(HDR(bh), bh->b_size, GFP_KERNEL);
634 if (bh && header == HDR(bh))
639 if (bh && header == HDR(bh))
645 if (!(bh && header == HDR(bh)))
660 if (HDR(bh)->h_refcount == cpu_to_le32(1)) {
661 __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
691 le32_add_cpu(&HDR(bh)->h_refcount, -1);
696 le32_to_cpu(HDR(bh)->h_refcount));
730 le32_add_cpu(&HDR(new_bh)->h_refcount, 1);
732 le32_to_cpu(HDR(new_bh)->h_refcount));
735 } else if (old_bh && header == HDR(old_bh)) {
849 if (!ext2_xattr_header_valid(HDR(bh))) {
874 __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
959 if (le32_to_cpu(HDR(bh)->h_refcount) >
963 le32_to_cpu(HDR(bh)->h_refcount),
965 } else if (!ext2_xattr_cmp(header, HDR(bh))) {