Lines Matching refs:BHDR
59 #define BHDR(bh) ((struct ext3_xattr_header *)((bh)->b_data)) macro
61 #define BFIRST(bh) ENTRY(BHDR(bh)+1)
165 if (BHDR(bh)->h_magic != cpu_to_le32(EXT3_XATTR_MAGIC) || in ext3_xattr_check_block()
166 BHDR(bh)->h_blocks != cpu_to_le32(1)) in ext3_xattr_check_block()
230 atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); in ext3_xattr_block_get()
374 atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); in ext3_xattr_block_list()
486 if (BHDR(bh)->h_refcount == cpu_to_le32(1)) { in ext3_xattr_release_block()
494 le32_add_cpu(&BHDR(bh)->h_refcount, -1); in ext3_xattr_release_block()
500 le32_to_cpu(BHDR(bh)->h_refcount)); in ext3_xattr_release_block()
648 le32_to_cpu(BHDR(bs->bh)->h_refcount)); in ext3_xattr_block_find()
657 bs->s.base = BHDR(bs->bh); in ext3_xattr_block_find()
733 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext3_xattr_block_set()
780 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext3_xattr_block_set()
782 le32_to_cpu(BHDR(new_bh)->h_refcount)); in ext3_xattr_block_set()
1099 if (BHDR(bh)->h_magic != cpu_to_le32(EXT3_XATTR_MAGIC) || in ext3_xattr_delete_inode()
1100 BHDR(bh)->h_blocks != cpu_to_le32(1)) { in ext3_xattr_delete_inode()
1135 __u32 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext3_xattr_cache_insert()
1231 } else if (le32_to_cpu(BHDR(bh)->h_refcount) >= in ext3_xattr_cache_find()
1235 le32_to_cpu(BHDR(bh)->h_refcount), in ext3_xattr_cache_find()
1237 } else if (ext3_xattr_cmp(header, BHDR(bh)) == 0) { in ext3_xattr_cache_find()