Lines Matching refs:btnc
37 void nilfs_btnode_cache_clear(struct address_space *btnc) in nilfs_btnode_cache_clear() argument
39 invalidate_mapping_pages(btnc, 0, -1); in nilfs_btnode_cache_clear()
40 truncate_inode_pages(btnc, 0); in nilfs_btnode_cache_clear()
44 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
46 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_create_block()
49 bh = nilfs_grab_buffer(inode, btnc, blocknr, 1 << BH_NILFS_Node); in nilfs_btnode_create_block()
69 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
74 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_submit_block()
78 bh = nilfs_grab_buffer(inode, btnc, blocknr, 1 << BH_NILFS_Node); in nilfs_btnode_submit_block()
170 int nilfs_btnode_prepare_change_key(struct address_space *btnc, in nilfs_btnode_prepare_change_key() argument
174 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_prepare_change_key()
201 spin_lock_irq(&btnc->tree_lock); in nilfs_btnode_prepare_change_key()
202 err = radix_tree_insert(&btnc->page_tree, newkey, obh->b_page); in nilfs_btnode_prepare_change_key()
203 spin_unlock_irq(&btnc->tree_lock); in nilfs_btnode_prepare_change_key()
216 err = invalidate_inode_pages2_range(btnc, newkey, newkey); in nilfs_btnode_prepare_change_key()
223 nbh = nilfs_btnode_create_block(btnc, newkey); in nilfs_btnode_prepare_change_key()
240 void nilfs_btnode_commit_change_key(struct address_space *btnc, in nilfs_btnode_commit_change_key() argument
259 spin_lock_irq(&btnc->tree_lock); in nilfs_btnode_commit_change_key()
260 radix_tree_delete(&btnc->page_tree, oldkey); in nilfs_btnode_commit_change_key()
261 radix_tree_tag_set(&btnc->page_tree, newkey, in nilfs_btnode_commit_change_key()
263 spin_unlock_irq(&btnc->tree_lock); in nilfs_btnode_commit_change_key()
281 void nilfs_btnode_abort_change_key(struct address_space *btnc, in nilfs_btnode_abort_change_key() argument
291 spin_lock_irq(&btnc->tree_lock); in nilfs_btnode_abort_change_key()
292 radix_tree_delete(&btnc->page_tree, newkey); in nilfs_btnode_abort_change_key()
293 spin_unlock_irq(&btnc->tree_lock); in nilfs_btnode_abort_change_key()