Lines Matching refs:new_bh

779 	struct buffer_head *new_bh = NULL;  in ext4_xattr_block_set()  local
866 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
867 if (new_bh) { in ext4_xattr_block_set()
869 if (new_bh == bs->bh) in ext4_xattr_block_set()
870 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set()
878 BUFFER_TRACE(new_bh, "get_write_access"); in ext4_xattr_block_set()
880 new_bh); in ext4_xattr_block_set()
883 lock_buffer(new_bh); in ext4_xattr_block_set()
884 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext4_xattr_block_set()
885 ea_bdebug(new_bh, "reusing; refcount now=%d", in ext4_xattr_block_set()
886 le32_to_cpu(BHDR(new_bh)->h_refcount)); in ext4_xattr_block_set()
887 unlock_buffer(new_bh); in ext4_xattr_block_set()
890 new_bh); in ext4_xattr_block_set()
899 new_bh = bs->bh; in ext4_xattr_block_set()
900 get_bh(new_bh); in ext4_xattr_block_set()
923 new_bh = sb_getblk(sb, block); in ext4_xattr_block_set()
924 if (unlikely(!new_bh)) { in ext4_xattr_block_set()
931 lock_buffer(new_bh); in ext4_xattr_block_set()
932 error = ext4_journal_get_create_access(handle, new_bh); in ext4_xattr_block_set()
934 unlock_buffer(new_bh); in ext4_xattr_block_set()
938 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set()
939 set_buffer_uptodate(new_bh); in ext4_xattr_block_set()
940 unlock_buffer(new_bh); in ext4_xattr_block_set()
941 ext4_xattr_cache_insert(ext4_mb_cache, new_bh); in ext4_xattr_block_set()
943 inode, new_bh); in ext4_xattr_block_set()
950 EXT4_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; in ext4_xattr_block_set()
953 if (bs->bh && bs->bh != new_bh) in ext4_xattr_block_set()
960 brelse(new_bh); in ext4_xattr_block_set()