Re: How can I completely evict(remove) the inode from memory and access the disk next time?

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

 



Daegyu Han <dgswsk@xxxxxxxxx> writes:

> Thank you for your consideration.
>
> Okay, I will check ocfs2 out.
>
> By the way, is there any possibility to implement this functionality
> in the vfs layer?

The vfs does support this.  It is just the filesystems have to do their
part as well.

> I looked at the dcache.c, inode.c, and mm/vmscan.c code and looked at
> several functions,
> and as you said, they seem to have way complex logic.
>
> The logic I thought was to release the desired dentry, dentry_kill()
> the negative dentry, and break the inodes of the file that had that
> dentry.

That fundamentally doesn't work when writes are cached (as the vfs
does).

> Can you tell me the detailed logic of the dentry and inode caches that
> I'm curious about?
> If not, can you give me a reference paper or book?

Look at the revalidate method in the vfs.

Eric



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux