From: Mark Hemment <markhe@veritas.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH] select_parent
Date: Mon, 30 Jul 2001 13:44:23 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.33.0107301335040.13705-100000@alloc.wat.veritas.com> (raw)
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++;
}
/*
reply other threads:[~2001-07-30 12:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.33.0107301335040.13705-100000@alloc.wat.veritas.com \
--to=markhe@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®