]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/inode-map.c
ASoC: max98357a: Document MAX98357A bindings
[karo-tx-linux.git] / fs / btrfs / inode-map.c
index 83d646bd2e4b90f34bd597b8ba6f6244071e48f1..74faea3a516ee710f7b099e4bc0e06eb2c3d001d 100644 (file)
@@ -178,7 +178,7 @@ static void start_caching(struct btrfs_root *root)
                          root->root_key.objectid);
        if (IS_ERR(tsk)) {
                btrfs_warn(root->fs_info, "failed to start inode caching task");
-               btrfs_clear_and_info(root, CHANGE_INODE_CACHE,
+               btrfs_clear_pending_and_info(root->fs_info, INODE_MAP_CACHE,
                                "disabling inode map caching");
        }
 }
@@ -364,6 +364,8 @@ void btrfs_init_free_ino_ctl(struct btrfs_root *root)
        ctl->start = 0;
        ctl->private = NULL;
        ctl->op = &free_ino_op;
+       INIT_LIST_HEAD(&ctl->trimming_ranges);
+       mutex_init(&ctl->cache_writeout_mutex);
 
        /*
         * Initially we allow to use 16K of ram to cache chunks of