Lines Matching refs:new_bh
710 struct buffer_head *new_bh = NULL;
715 new_bh = ext2_xattr_cache_find(inode, header);
716 if (new_bh) {
718 if (new_bh == old_bh) {
719 ea_bdebug(new_bh, "keeping this block");
723 ea_bdebug(new_bh, "reusing block");
727 unlock_buffer(new_bh);
730 le32_add_cpu(&HDR(new_bh)->h_refcount, 1);
731 ea_bdebug(new_bh, "refcount now=%d",
732 le32_to_cpu(HDR(new_bh)->h_refcount));
734 unlock_buffer(new_bh);
738 new_bh = old_bh;
739 get_bh(new_bh);
740 ext2_xattr_cache_insert(ea_block_cache, new_bh);
753 new_bh = sb_getblk(sb, block);
754 if (unlikely(!new_bh)) {
760 lock_buffer(new_bh);
761 memcpy(new_bh->b_data, header, new_bh->b_size);
762 set_buffer_uptodate(new_bh);
763 unlock_buffer(new_bh);
764 ext2_xattr_cache_insert(ea_block_cache, new_bh);
768 mark_buffer_dirty(new_bh);
770 sync_dirty_buffer(new_bh);
772 if (buffer_req(new_bh) && !buffer_uptodate(new_bh))
778 EXT2_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0;
786 if (new_bh && new_bh != old_bh) {
796 if (old_bh && old_bh != new_bh) {
805 brelse(new_bh);