Lines Matching refs:old_bh
621 ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, in ext2_xattr_set2() argument
632 if (new_bh == old_bh) { in ext2_xattr_set2()
649 } else if (old_bh && header == HDR(old_bh)) { in ext2_xattr_set2()
652 new_bh = old_bh; in ext2_xattr_set2()
697 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2()
707 if (old_bh && old_bh != new_bh) { in ext2_xattr_set2()
714 ce = mb_cache_entry_get(ext2_xattr_cache, old_bh->b_bdev, in ext2_xattr_set2()
715 old_bh->b_blocknr); in ext2_xattr_set2()
716 lock_buffer(old_bh); in ext2_xattr_set2()
717 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set2()
721 ea_bdebug(old_bh, "freeing"); in ext2_xattr_set2()
722 ext2_free_blocks(inode, old_bh->b_blocknr, 1); in ext2_xattr_set2()
726 get_bh(old_bh); in ext2_xattr_set2()
727 bforget(old_bh); in ext2_xattr_set2()
730 le32_add_cpu(&HDR(old_bh)->h_refcount, -1); in ext2_xattr_set2()
735 mark_buffer_dirty(old_bh); in ext2_xattr_set2()
736 ea_bdebug(old_bh, "refcount now=%d", in ext2_xattr_set2()
737 le32_to_cpu(HDR(old_bh)->h_refcount)); in ext2_xattr_set2()
739 unlock_buffer(old_bh); in ext2_xattr_set2()