Lines Matching refs:BTRFS_I
140 if (!((BTRFS_I(inode)->flags & flags) == flags)) { in lookup_free_space_inode()
142 BTRFS_I(inode)->flags |= BTRFS_INODE_NODATASUM | in lookup_free_space_inode()
252 ret = btrfs_orphan_add(trans, BTRFS_I(inode)); in btrfs_remove_free_space_inode()
310 .inode = BTRFS_I(vfs_inode), in btrfs_truncate_free_space_cache()
312 .ino = btrfs_ino(BTRFS_I(vfs_inode)), in btrfs_truncate_free_space_cache()
316 struct btrfs_inode *inode = BTRFS_I(vfs_inode); in btrfs_truncate_free_space_cache()
486 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages()
492 btrfs_err(BTRFS_I(inode)->root->fs_info, in io_ctl_prepare_pages()
786 if (!BTRFS_I(inode)->generation) { in __load_free_space_cache()
793 if (BTRFS_I(inode)->generation != generation) { in __load_free_space_cache()
796 BTRFS_I(inode)->generation, generation); in __load_free_space_cache()
1165 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1177 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1185 BTRFS_I(inode)->generation = trans->transid; in update_cache_item()
1274 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1295 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc()
1322 BTRFS_I(inode)->generation = 0; in __btrfs_wait_cache_io()
1328 btrfs_update_inode(trans, root, BTRFS_I(inode)); in __btrfs_wait_cache_io()
1408 BTRFS_I(inode)->generation = 0; in __btrfs_write_out_cache()
1421 lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1462 ret = btrfs_dirty_pages(BTRFS_I(inode), io_ctl->pages, in __btrfs_write_out_cache()
1477 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1511 BTRFS_I(inode)->generation = 0; in __btrfs_write_out_cache()
1513 btrfs_update_inode(trans, root, BTRFS_I(inode)); in __btrfs_write_out_cache()