From: Andrew Morton <akpm@osdl.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Invalidating dentries
Date: Tue, 22 Mar 2005 18:44:52 -0800 [thread overview]
Message-ID: <20050322184452.2408be4b.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0503211626180.20464@yvahk01.tjqt.qr>
Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
>
> how can I invalidate all buffered/cached dentries so that ls -l /somefolder
> will definitely go read the harddisk?
Patch the kernel?
There's no way of doing this apart from unmount/mount, or by forcing a ton
of memory pressure and hoping that the dentries get reclaimed.
A quick way of doing it would be to add a new mount option to the
filesystem and call shrink_dcache_sb() from there. do `mount -o
remount,shrink_dcache'.
next prev parent reply other threads:[~2005-03-23 2:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 15:26 Invalidating dentries Jan Engelhardt
2005-03-21 15:46 ` linux-os
2005-03-23 2:44 ` Andrew Morton [this message]
2005-03-23 7:08 ` Jan Engelhardt
[not found] <3Kx1c-6iK-37@gated-at.bofh.it>
[not found] ` <3Kxue-6D8-35@gated-at.bofh.it>
2005-03-23 0:07 ` Robert Hancock
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=20050322184452.2408be4b.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
/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