]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/truncate.c
lib: radix-tree: check accounting of existing slot replacement users
[mirror_ubuntu-artful-kernel.git] / mm / truncate.c
index 8d8c62d89e6d101bce9373c20258d1bbc9df7fa2..3c631c357873202f1277caa15e2baf26c97a35ca 100644 (file)
@@ -49,7 +49,7 @@ static void clear_exceptional_entry(struct address_space *mapping,
                goto unlock;
        if (*slot != entry)
                goto unlock;
-       radix_tree_replace_slot(slot, NULL);
+       radix_tree_replace_slot(&mapping->page_tree, slot, NULL);
        mapping->nrexceptional--;
        if (!node)
                goto unlock;