Lines Matching refs:old_bh
653 ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, in ext2_xattr_set2() argument
665 if (new_bh == old_bh) { in ext2_xattr_set2()
682 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
685 new_bh = old_bh; in ext2_xattr_set2()
730 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2()
740 if (old_bh && old_bh != new_bh) { in ext2_xattr_set2()
745 lock_buffer(old_bh); in ext2_xattr_set2()
746 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
747 __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash); in ext2_xattr_set2()
754 old_bh->b_blocknr); in ext2_xattr_set2()
756 ea_bdebug(old_bh, "freeing"); in ext2_xattr_set2()
757 ext2_free_blocks(inode, old_bh->b_blocknr, 1); in ext2_xattr_set2()
761 get_bh(old_bh); in ext2_xattr_set2()
762 bforget(old_bh); in ext2_xattr_set2()
765 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
768 mark_buffer_dirty(old_bh); in ext2_xattr_set2()
769 ea_bdebug(old_bh, "refcount now=%d", in ext2_xattr_set2()
770 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
772 unlock_buffer(old_bh); in ext2_xattr_set2()