Re: Invalidating dentries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan Engelhardt <[email protected]> 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'.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux