aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index b85fda360533..6aa635fbfa0a 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -638,7 +638,7 @@ resume:
638 * of the unused list for prune_dcache 638 * of the unused list for prune_dcache
639 */ 639 */
640 if (!atomic_read(&dentry->d_count)) { 640 if (!atomic_read(&dentry->d_count)) {
641 list_add(&dentry->d_lru, dentry_unused.prev); 641 list_add_tail(&dentry->d_lru, &dentry_unused);
642 dentry_stat.nr_unused++; 642 dentry_stat.nr_unused++;
643 found++; 643 found++;
644 } 644 }