diff options
Diffstat (limited to 'Documentation/filesystems/vfs.txt')
-rw-r--r-- | Documentation/filesystems/vfs.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 250681b8c7cc..69b10ff5ec81 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -847,7 +847,8 @@ defined: | |||
847 | 847 | ||
848 | struct dentry_operations { | 848 | struct dentry_operations { |
849 | int (*d_revalidate)(struct dentry *, struct nameidata *); | 849 | int (*d_revalidate)(struct dentry *, struct nameidata *); |
850 | int (*d_hash)(struct dentry *, struct qstr *); | 850 | int (*d_hash)(const struct dentry *, const struct inode *, |
851 | struct qstr *); | ||
851 | int (*d_compare)(const struct dentry *, const struct inode *, | 852 | int (*d_compare)(const struct dentry *, const struct inode *, |
852 | const struct dentry *, const struct inode *, | 853 | const struct dentry *, const struct inode *, |
853 | unsigned int, const char *, const struct qstr *); | 854 | unsigned int, const char *, const struct qstr *); |
@@ -864,7 +865,10 @@ struct dentry_operations { | |||
864 | 865 | ||
865 | d_hash: called when the VFS adds a dentry to the hash table. The first | 866 | d_hash: called when the VFS adds a dentry to the hash table. The first |
866 | dentry passed to d_hash is the parent directory that the name is | 867 | dentry passed to d_hash is the parent directory that the name is |
867 | to be hashed into. | 868 | to be hashed into. The inode is the dentry's inode. |
869 | |||
870 | Same locking and synchronisation rules as d_compare regarding | ||
871 | what is safe to dereference etc. | ||
868 | 872 | ||
869 | d_compare: called to compare a dentry name with a given name. The first | 873 | d_compare: called to compare a dentry name with a given name. The first |
870 | dentry is the parent of the dentry to be compared, the second is | 874 | dentry is the parent of the dentry to be compared, the second is |