Lines Matching refs:btnc
23 void nilfs_btnode_cache_clear(struct address_space *btnc) in nilfs_btnode_cache_clear() argument
25 invalidate_mapping_pages(btnc, 0, -1); in nilfs_btnode_cache_clear()
26 truncate_inode_pages(btnc, 0); in nilfs_btnode_cache_clear()
30 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
32 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_create_block()
35 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block()
55 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
60 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_submit_block()
64 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block()
156 int nilfs_btnode_prepare_change_key(struct address_space *btnc, in nilfs_btnode_prepare_change_key() argument
160 struct inode *inode = NILFS_BTNC_I(btnc); in nilfs_btnode_prepare_change_key()
187 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
188 err = radix_tree_insert(&btnc->i_pages, newkey, obh->b_page); in nilfs_btnode_prepare_change_key()
189 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
202 err = invalidate_inode_pages2_range(btnc, newkey, newkey); in nilfs_btnode_prepare_change_key()
209 nbh = nilfs_btnode_create_block(btnc, newkey); in nilfs_btnode_prepare_change_key()
226 void nilfs_btnode_commit_change_key(struct address_space *btnc, in nilfs_btnode_commit_change_key() argument
245 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
246 radix_tree_delete(&btnc->i_pages, oldkey); in nilfs_btnode_commit_change_key()
247 radix_tree_tag_set(&btnc->i_pages, newkey, in nilfs_btnode_commit_change_key()
249 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
267 void nilfs_btnode_abort_change_key(struct address_space *btnc, in nilfs_btnode_abort_change_key() argument
277 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_abort_change_key()
278 radix_tree_delete(&btnc->i_pages, newkey); in nilfs_btnode_abort_change_key()
279 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_abort_change_key()