I understand that when a file is opened, its inode is brought into memory.
I want to know whether the f_inode in the file object and the d_inode in the dentry object both point to the same in-memory inode for a given file.
I understand that when a file is opened, its inode is brought into memory.
I want to know whether the f_inode in the file object and the d_inode in the dentry object both point to the same in-memory inode for a given file.
Copyright © 2021 Jogjafile Inc.
The key difference (as the characters d and f implies) is that f_inode points to the inode associated with a file, while d_inode points to the inode associated with a directory.