Lines Matching refs:btnc

40 void nilfs_btnode_cache_clear(struct address_space *btnc)  in nilfs_btnode_cache_clear()  argument
42 invalidate_mapping_pages(btnc, 0, -1); in nilfs_btnode_cache_clear()
43 truncate_inode_pages(btnc, 0); in nilfs_btnode_cache_clear()
47 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
49 struct inode *inode = btnc->host; in nilfs_btnode_create_block()
52 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block()
72 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
77 struct inode *inode = btnc->host; in nilfs_btnode_submit_block()
81 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block()
173 int nilfs_btnode_prepare_change_key(struct address_space *btnc, in nilfs_btnode_prepare_change_key() argument
177 struct inode *inode = btnc->host; in nilfs_btnode_prepare_change_key()
204 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
205 err = radix_tree_insert(&btnc->i_pages, newkey, obh->b_page); in nilfs_btnode_prepare_change_key()
206 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
219 err = invalidate_inode_pages2_range(btnc, newkey, newkey); in nilfs_btnode_prepare_change_key()
226 nbh = nilfs_btnode_create_block(btnc, newkey); in nilfs_btnode_prepare_change_key()
243 void nilfs_btnode_commit_change_key(struct address_space *btnc, in nilfs_btnode_commit_change_key() argument
262 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
263 radix_tree_delete(&btnc->i_pages, oldkey); in nilfs_btnode_commit_change_key()
264 radix_tree_tag_set(&btnc->i_pages, newkey, in nilfs_btnode_commit_change_key()
266 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
284 void nilfs_btnode_abort_change_key(struct address_space *btnc, in nilfs_btnode_abort_change_key() argument
294 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_abort_change_key()
295 radix_tree_delete(&btnc->i_pages, newkey); in nilfs_btnode_abort_change_key()
296 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_abort_change_key()