Lines Matching refs:old_bh
622 ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, in ext2_xattr_set2() argument
633 if (new_bh == old_bh) { in ext2_xattr_set2()
650 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
653 new_bh = old_bh; in ext2_xattr_set2()
698 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2()
708 if (old_bh && old_bh != new_bh) { in ext2_xattr_set2()
715 ce = mb_cache_entry_get(ext2_xattr_cache, old_bh->b_bdev, in ext2_xattr_set2()
716 old_bh->b_blocknr); in ext2_xattr_set2()
717 lock_buffer(old_bh); in ext2_xattr_set2()
718 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
722 ea_bdebug(old_bh, "freeing"); in ext2_xattr_set2()
723 ext2_free_blocks(inode, old_bh->b_blocknr, 1); in ext2_xattr_set2()
727 get_bh(old_bh); in ext2_xattr_set2()
728 bforget(old_bh); in ext2_xattr_set2()
731 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
736 mark_buffer_dirty(old_bh); in ext2_xattr_set2()
737 ea_bdebug(old_bh, "refcount now=%d", in ext2_xattr_set2()
738 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
740 unlock_buffer(old_bh); in ext2_xattr_set2()