[lkml]   [2005]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Invalidating dentries
Jan Engelhardt <> 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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-04-06 13:30    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean