summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-11 17:58:30 +0300
committerDavid Sterba <dsterba@suse.com>2019-04-29 20:02:18 +0300
commit7b4397386fbdc606eb053bc2a1cfd985aea59916 (patch)
tree239b52583c2be1531024235fc14ab3ee24fb2ce7 /fs/btrfs/inode.c
parentc258d6e36442eb5d3363f6dbc0e6f2c162bfb66d (diff)
downloadlinux-7b4397386fbdc606eb053bc2a1cfd985aea59916.tar.xz
btrfs: switch extent_io_tree::track_uptodate to bool
This patch is split from the following one "btrfs: Introduce extent_io_tree::owner to distinguish different io_trees" from Qu, so the different changes are not mixed together. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 2436bc50f21d..8f0045ba27d4 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9184,8 +9184,8 @@ struct inode *btrfs_alloc_inode(struct super_block *sb)
extent_map_tree_init(&ei->extent_tree);
extent_io_tree_init(fs_info, &ei->io_tree, inode);
extent_io_tree_init(fs_info, &ei->io_failure_tree, inode);
- ei->io_tree.track_uptodate = 1;
- ei->io_failure_tree.track_uptodate = 1;
+ ei->io_tree.track_uptodate = true;
+ ei->io_failure_tree.track_uptodate = true;
atomic_set(&ei->sync_writers, 0);
mutex_init(&ei->log_mutex);
mutex_init(&ei->delalloc_mutex);