Lines Matching refs:btnc
41 void nilfs_btnode_cache_clear(struct address_space *btnc) in nilfs_btnode_cache_clear() argument
43 invalidate_mapping_pages(btnc, 0, -1); in nilfs_btnode_cache_clear()
44 truncate_inode_pages(btnc, 0); in nilfs_btnode_cache_clear()
48 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
50 struct inode *inode = btnc->host; in nilfs_btnode_create_block()
53 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block()
87 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
92 struct inode *inode = btnc->host; in nilfs_btnode_submit_block()
96 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block()
209 int nilfs_btnode_prepare_change_key(struct address_space *btnc, in nilfs_btnode_prepare_change_key() argument
213 struct inode *inode = btnc->host; in nilfs_btnode_prepare_change_key()
234 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
235 err = __xa_insert(&btnc->i_pages, newkey, ofolio, GFP_NOFS); in nilfs_btnode_prepare_change_key()
236 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_prepare_change_key()
248 err = invalidate_inode_pages2_range(btnc, newkey, newkey); in nilfs_btnode_prepare_change_key()
255 nbh = nilfs_btnode_create_block(btnc, newkey); in nilfs_btnode_prepare_change_key()
285 void nilfs_btnode_commit_change_key(struct address_space *btnc, in nilfs_btnode_commit_change_key() argument
304 xa_lock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
305 __xa_erase(&btnc->i_pages, oldkey); in nilfs_btnode_commit_change_key()
306 __xa_set_mark(&btnc->i_pages, newkey, PAGECACHE_TAG_DIRTY); in nilfs_btnode_commit_change_key()
307 xa_unlock_irq(&btnc->i_pages); in nilfs_btnode_commit_change_key()
336 void nilfs_btnode_abort_change_key(struct address_space *btnc, in nilfs_btnode_abort_change_key() argument
346 xa_erase_irq(&btnc->i_pages, newkey); in nilfs_btnode_abort_change_key()