Lines Matching refs:old_bh
658 ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, in ext2_xattr_set2() argument
670 if (new_bh == old_bh) { in ext2_xattr_set2()
687 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
690 new_bh = old_bh; in ext2_xattr_set2()
735 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2()
745 if (old_bh && old_bh != new_bh) { in ext2_xattr_set2()
750 lock_buffer(old_bh); in ext2_xattr_set2()
751 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
752 __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash); in ext2_xattr_set2()
759 old_bh->b_blocknr); in ext2_xattr_set2()
761 ea_bdebug(old_bh, "freeing"); in ext2_xattr_set2()
762 ext2_free_blocks(inode, old_bh->b_blocknr, 1); in ext2_xattr_set2()
766 get_bh(old_bh); in ext2_xattr_set2()
767 bforget(old_bh); in ext2_xattr_set2()
770 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
773 mark_buffer_dirty(old_bh); in ext2_xattr_set2()
774 ea_bdebug(old_bh, "refcount now=%d", in ext2_xattr_set2()
775 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
777 unlock_buffer(old_bh); in ext2_xattr_set2()