OSDN Git Service

Merge tag 'write-page-prefaulting' of git://git.kernel.org/pub/scm/linux/kernel/git...
[uclinux-h8/linux.git] / fs / dcache.c
index c84269c..93f4f5e 100644 (file)
@@ -1766,7 +1766,8 @@ static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
        char *dname;
        int err;
 
-       dentry = kmem_cache_alloc(dentry_cache, GFP_KERNEL);
+       dentry = kmem_cache_alloc_lru(dentry_cache, &sb->s_dentry_lru,
+                                     GFP_KERNEL);
        if (!dentry)
                return NULL;