All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I completely evict(remove) the inode from memory and access the disk next time?
@ 2019-10-02  8:30 Daegyu Han
  2019-10-02 12:46 ` Theodore Y. Ts'o
  2019-10-02 19:38 ` Al Viro
  0 siblings, 2 replies; 7+ messages in thread
From: Daegyu Han @ 2019-10-02  8:30 UTC (permalink / raw)
  To: linux-fsdevel

Hi linux file system experts,

I'm so sorry that I've asked again the general question about Linux
file systems.

For example, if there is a file a.txt in the path /foo/ bar,
what should I do to completely evict(remove) the inode of bar
directory from memory and read the inode via disk access?

A few weeks ago. I asked a question about dentry and Ted told me that
there is a negative dentry on Linux.

I tried to completely evict(remove) the dentry cache using FS API in
include/fs.h and dcache.h, and also evict the inode from memory, but I
failed.

The FS API I used is:
dput() // to drop usage count and remove from dentry cache
iput() // to drop usage count and remove from inode cache.

To be honest, I'm confused about which API to cope with my question.

As far as I know, even though metadata is released from the file
system cache, it is managed as an LRU list.

I also saw some code related to CPU cacheline.
When I look at the superblock structure, there are also inodes, dcache
lists, and LRUs.

How can I completely evict the inode from memory and make disk access
as mentioned above?

Thank you in advance

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-03  1:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-02  8:30 How can I completely evict(remove) the inode from memory and access the disk next time? Daegyu Han
2019-10-02 12:46 ` Theodore Y. Ts'o
2019-10-02 14:42   ` Daegyu Han
2019-10-02 19:18     ` Eric W. Biederman
2019-10-02 19:39     ` Theodore Y. Ts'o
2019-10-03  1:42       ` Daegyu Han
2019-10-02 19:38 ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.