• Home
  • Raw
  • Download

Lines Matching refs:new_bh

712 	struct buffer_head *new_bh = NULL;  in ext2_xattr_set2()  local
717 new_bh = ext2_xattr_cache_find(inode, header); in ext2_xattr_set2()
718 if (new_bh) { in ext2_xattr_set2()
720 if (new_bh == old_bh) { in ext2_xattr_set2()
721 ea_bdebug(new_bh, "keeping this block"); in ext2_xattr_set2()
725 ea_bdebug(new_bh, "reusing block"); in ext2_xattr_set2()
729 unlock_buffer(new_bh); in ext2_xattr_set2()
732 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2()
733 ea_bdebug(new_bh, "refcount now=%d", in ext2_xattr_set2()
734 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2()
736 unlock_buffer(new_bh); in ext2_xattr_set2()
740 new_bh = old_bh; in ext2_xattr_set2()
741 get_bh(new_bh); in ext2_xattr_set2()
742 ext2_xattr_cache_insert(ea_block_cache, new_bh); in ext2_xattr_set2()
752 new_bh = sb_getblk(sb, block); in ext2_xattr_set2()
753 if (unlikely(!new_bh)) { in ext2_xattr_set2()
759 lock_buffer(new_bh); in ext2_xattr_set2()
760 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
761 set_buffer_uptodate(new_bh); in ext2_xattr_set2()
762 unlock_buffer(new_bh); in ext2_xattr_set2()
763 ext2_xattr_cache_insert(ea_block_cache, new_bh); in ext2_xattr_set2()
767 mark_buffer_dirty(new_bh); in ext2_xattr_set2()
769 sync_dirty_buffer(new_bh); in ext2_xattr_set2()
771 if (buffer_req(new_bh) && !buffer_uptodate(new_bh)) in ext2_xattr_set2()
777 EXT2_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; in ext2_xattr_set2()
785 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2()
795 if (old_bh && old_bh != new_bh) { in ext2_xattr_set2()
804 brelse(new_bh); in ext2_xattr_set2()