Searched refs:BHDR (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/fs/ext3/ |
D | xattr.c | 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() [all …]
|
/linux-4.1.27/fs/ext4/ |
D | xattr.c | 164 ext4_xattr_block_csum_set(inode, bh->b_blocknr, BHDR(bh)); in ext4_handle_dirty_xattr_block() 223 if (BHDR(bh)->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC) || in ext4_xattr_check_block() 224 BHDR(bh)->h_blocks != cpu_to_le32(1)) in ext4_xattr_check_block() 226 if (!ext4_xattr_block_csum_verify(inode, bh->b_blocknr, BHDR(bh))) in ext4_xattr_check_block() 295 atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); in ext4_xattr_block_get() 444 atomic_read(&(bh->b_count)), le32_to_cpu(BHDR(bh)->h_refcount)); in ext4_xattr_block_list() 557 if (BHDR(bh)->h_refcount == cpu_to_le32(1)) { in ext4_xattr_release_block() 567 le32_add_cpu(&BHDR(bh)->h_refcount, -1); in ext4_xattr_release_block() 591 le32_to_cpu(BHDR(bh)->h_refcount)); in ext4_xattr_release_block() 750 le32_to_cpu(BHDR(bs->bh)->h_refcount)); in ext4_xattr_block_find() [all …]
|
D | xattr.h | 71 #define BHDR(bh) ((struct ext4_xattr_header *)((bh)->b_data)) macro 73 #define BFIRST(bh) ENTRY(BHDR(bh)+1)
|