Lines Matching defs:HDR
67 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data))
69 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1)
173 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount));
175 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) ||
176 HDR(bh)->h_blocks != cpu_to_le32(1)) {
273 atomic_read(&(bh->b_count)), le32_to_cpu(HDR(bh)->h_refcount));
275 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) ||
276 HDR(bh)->h_blocks != cpu_to_le32(1)) {
405 le32_to_cpu(HDR(bh)->h_refcount));
406 header = HDR(bh);
491 /* assert(header == HDR(bh)); */
511 memcpy(header, HDR(bh), bh->b_size);
603 if (bh && header == HDR(bh))
608 if (bh && header == HDR(bh))
615 if (!(bh && header == HDR(bh)))
649 HDR(new_bh)->h_refcount = cpu_to_le32(1 +
650 le32_to_cpu(HDR(new_bh)->h_refcount));
652 le32_to_cpu(HDR(new_bh)->h_refcount));
655 } else if (old_bh && header == HDR(old_bh)) {
723 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) {
735 HDR(old_bh)->h_refcount = cpu_to_le32(
736 le32_to_cpu(HDR(old_bh)->h_refcount) - 1);
742 le32_to_cpu(HDR(old_bh)->h_refcount));
776 if (HDR(bh)->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) ||
777 HDR(bh)->h_blocks != cpu_to_le32(1)) {
785 if (HDR(bh)->h_refcount == cpu_to_le32(1)) {
793 HDR(bh)->h_refcount = cpu_to_le32(
794 le32_to_cpu(HDR(bh)->h_refcount) - 1);
798 le32_to_cpu(HDR(bh)->h_refcount));
835 __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
934 if (le32_to_cpu(HDR(bh)->h_refcount) >
938 le32_to_cpu(HDR(bh)->h_refcount),
940 } else if (!ext2_xattr_cmp(header, HDR(bh))) {