Lines Matching refs:new_bh
780 struct buffer_head *new_bh = NULL; in ext4_xattr_block_set() local
867 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
868 if (new_bh) { in ext4_xattr_block_set()
870 if (new_bh == bs->bh) in ext4_xattr_block_set()
871 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set()
879 BUFFER_TRACE(new_bh, "get_write_access"); in ext4_xattr_block_set()
881 new_bh); in ext4_xattr_block_set()
884 lock_buffer(new_bh); in ext4_xattr_block_set()
885 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext4_xattr_block_set()
886 ea_bdebug(new_bh, "reusing; refcount now=%d", in ext4_xattr_block_set()
887 le32_to_cpu(BHDR(new_bh)->h_refcount)); in ext4_xattr_block_set()
888 unlock_buffer(new_bh); in ext4_xattr_block_set()
891 new_bh); in ext4_xattr_block_set()
900 new_bh = bs->bh; in ext4_xattr_block_set()
901 get_bh(new_bh); in ext4_xattr_block_set()
924 new_bh = sb_getblk(sb, block); in ext4_xattr_block_set()
925 if (unlikely(!new_bh)) { in ext4_xattr_block_set()
932 lock_buffer(new_bh); in ext4_xattr_block_set()
933 error = ext4_journal_get_create_access(handle, new_bh); in ext4_xattr_block_set()
935 unlock_buffer(new_bh); in ext4_xattr_block_set()
939 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set()
940 set_buffer_uptodate(new_bh); in ext4_xattr_block_set()
941 unlock_buffer(new_bh); in ext4_xattr_block_set()
942 ext4_xattr_cache_insert(ext4_mb_cache, new_bh); in ext4_xattr_block_set()
944 inode, new_bh); in ext4_xattr_block_set()
951 EXT4_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; in ext4_xattr_block_set()
954 if (bs->bh && bs->bh != new_bh) in ext4_xattr_block_set()
961 brelse(new_bh); in ext4_xattr_block_set()