* [PATCH] select_parent
@ 2001-07-30 12:44 Mark Hemment
0 siblings, 0 replies; only message in thread
From: Mark Hemment @ 2001-07-30 12:44 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Minor patch.
fs/dcache.c:select_parent() moves unused dentries to the head of the
unused list, ready for a call to prune_dcache(). However, it doesn't
clear the referenced-bit. At worst, this could result in a bit of
extra work and a few unnecessary dentires reaped.
Please apply.
Mark
diff -ur -X dontdiff linux-2.4.7/fs/dcache.c dcache-2.4.7/fs/dcache.c
--- linux-2.4.7/fs/dcache.c Thu Jul 5 18:14:23 2001
+++ dcache-2.4.7/fs/dcache.c Mon Jul 30 14:00:45 2001
@@ -491,6 +491,7 @@
if (!atomic_read(&dentry->d_count)) {
list_del(&dentry->d_lru);
list_add(&dentry->d_lru, dentry_unused.prev);
+ dentry->d_vfs_flags &= ~DCACHE_REFERENCED;
found++;
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-30 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-30 12:44 [PATCH] select_parent Mark Hemment
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®