diff options
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r-- | fs/btrfs/inode-map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c index 83d646bd2e4b..74faea3a516e 100644 --- a/fs/btrfs/inode-map.c +++ b/fs/btrfs/inode-map.c | |||
@@ -178,7 +178,7 @@ static void start_caching(struct btrfs_root *root) | |||
178 | root->root_key.objectid); | 178 | root->root_key.objectid); |
179 | if (IS_ERR(tsk)) { | 179 | if (IS_ERR(tsk)) { |
180 | btrfs_warn(root->fs_info, "failed to start inode caching task"); | 180 | btrfs_warn(root->fs_info, "failed to start inode caching task"); |
181 | btrfs_clear_and_info(root, CHANGE_INODE_CACHE, | 181 | btrfs_clear_pending_and_info(root->fs_info, INODE_MAP_CACHE, |
182 | "disabling inode map caching"); | 182 | "disabling inode map caching"); |
183 | } | 183 | } |
184 | } | 184 | } |
@@ -364,6 +364,8 @@ void btrfs_init_free_ino_ctl(struct btrfs_root *root) | |||
364 | ctl->start = 0; | 364 | ctl->start = 0; |
365 | ctl->private = NULL; | 365 | ctl->private = NULL; |
366 | ctl->op = &free_ino_op; | 366 | ctl->op = &free_ino_op; |
367 | INIT_LIST_HEAD(&ctl->trimming_ranges); | ||
368 | mutex_init(&ctl->cache_writeout_mutex); | ||
367 | 369 | ||
368 | /* | 370 | /* |
369 | * Initially we allow to use 16K of ram to cache chunks of | 371 | * Initially we allow to use 16K of ram to cache chunks of |