Lines Matching refs:old_bh
626 ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh,
637 if (new_bh == old_bh) {
655 } else if (old_bh && header == HDR(old_bh)) {
658 new_bh = old_bh;
705 if (new_bh && new_bh != old_bh)
713 if (old_bh && old_bh != new_bh) {
720 ce = mb_cache_entry_get(ext2_xattr_cache, old_bh->b_bdev,
721 old_bh->b_blocknr);
722 lock_buffer(old_bh);
723 if (HDR(old_bh)->h_refcount == cpu_to_le32(1)) {
727 ea_bdebug(old_bh, "freeing");
728 ext2_free_blocks(inode, old_bh->b_blocknr, 1);
729 /* We let our caller release old_bh, so we
731 get_bh(old_bh);
732 bforget(old_bh);
735 HDR(old_bh)->h_refcount = cpu_to_le32(
736 le32_to_cpu(HDR(old_bh)->h_refcount) - 1);
740 mark_buffer_dirty(old_bh);
741 ea_bdebug(old_bh, "refcount now=%d",
742 le32_to_cpu(HDR(old_bh)->h_refcount));
744 unlock_buffer(old_bh);