@@ -2085,7 +2085,6 @@ int btrfs_init_eb_info(struct btrfs_fs_info *fs_info)
eb_info->fs_info = fs_info;
extent_io_tree_init(&eb_info->io_tree, eb_info);
- eb_info->io_tree.track_uptodate = 0;
eb_info->io_tree.ops = &btree_extent_io_ops;
extent_io_tree_init(&eb_info->io_failure_tree, eb_info);
INIT_RADIX_TREE(&eb_info->buffer_radix, GFP_ATOMIC);
@@ -102,7 +102,6 @@ struct extent_io_tree {
struct rb_root state;
void *private_data;
u64 dirty_bytes;
- int track_uptodate;
spinlock_t lock;
const struct extent_io_ops *ops;
};
@@ -9306,8 +9306,6 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
extent_map_tree_init(&ei->extent_tree);
extent_io_tree_init(&ei->io_tree, inode);
extent_io_tree_init(&ei->io_failure_tree, inode);
- ei->io_tree.track_uptodate = 1;
- ei->io_failure_tree.track_uptodate = 1;
atomic_set(&ei->sync_writers, 0);
mutex_init(&ei->log_mutex);
mutex_init(&ei->delalloc_mutex);
We now track block uptodate status using a page's PG_Uptodate flag. Hence this commit removes the now unused extent_io_tree->track_uptodate member. Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> --- fs/btrfs/disk-io.c | 1 - fs/btrfs/extent_io.h | 1 - fs/btrfs/inode.c | 2 -- 3 files changed, 4 deletions(-)