Lines Matching refs:obh
159 struct buffer_head *obh, *nbh; in nilfs_btnode_prepare_change_key() local
167 obh = ctxt->bh; in nilfs_btnode_prepare_change_key()
171 lock_page(obh->b_page); in nilfs_btnode_prepare_change_key()
181 if (unlikely(oldkey != obh->b_page->index)) in nilfs_btnode_prepare_change_key()
182 NILFS_PAGE_BUG(obh->b_page, in nilfs_btnode_prepare_change_key()
188 err = radix_tree_insert(&btnc->i_pages, newkey, obh->b_page); in nilfs_btnode_prepare_change_key()
206 unlock_page(obh->b_page); in nilfs_btnode_prepare_change_key()
213 BUG_ON(nbh == obh); in nilfs_btnode_prepare_change_key()
218 unlock_page(obh->b_page); in nilfs_btnode_prepare_change_key()
229 struct buffer_head *obh = ctxt->bh, *nbh = ctxt->newbh; in nilfs_btnode_commit_change_key() local
237 opage = obh->b_page; in nilfs_btnode_commit_change_key()
243 mark_buffer_dirty(obh); in nilfs_btnode_commit_change_key()
251 opage->index = obh->b_blocknr = newkey; in nilfs_btnode_commit_change_key()
254 nilfs_copy_buffer(nbh, obh); in nilfs_btnode_commit_change_key()
259 nilfs_btnode_delete(obh); /* will decrement bh->b_count */ in nilfs_btnode_commit_change_key()