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