diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:49:57 -0500 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:50:29 -0500 |
commit | 34286d6662308d82aed891852d04c7c3a2649b16 (patch) | |
tree | c4b7311404d302e7cb94df7a4690298e1059910a /Documentation/filesystems/vfs.txt | |
parent | 44a7d7a878c9cbb74f236ea755b25b6b2e26a9a9 (diff) |
fs: rcu-walk aware d_revalidate method
Require filesystems be aware of .d_revalidate being called in rcu-walk
mode (nd->flags & LOOKUP_RCU). For now do a simple push down, returning
-ECHILD from all implementations.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'Documentation/filesystems/vfs.txt')
-rw-r--r-- | Documentation/filesystems/vfs.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 69b10ff5ec81..c936b4912383 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -863,6 +863,15 @@ struct dentry_operations { | |||
863 | dcache. Most filesystems leave this as NULL, because all their | 863 | dcache. Most filesystems leave this as NULL, because all their |
864 | dentries in the dcache are valid | 864 | dentries in the dcache are valid |
865 | 865 | ||
866 | d_revalidate may be called in rcu-walk mode (nd->flags & LOOKUP_RCU). | ||
867 | If in rcu-walk mode, the filesystem must revalidate the dentry without | ||
868 | blocking or storing to the dentry, d_parent and d_inode should not be | ||
869 | used without care (because they can go NULL), instead nd->inode should | ||
870 | be used. | ||
871 | |||
872 | If a situation is encountered that rcu-walk cannot handle, return | ||
873 | -ECHILD and it will be called again in ref-walk mode. | ||
874 | |||
866 | d_hash: called when the VFS adds a dentry to the hash table. The first | 875 | d_hash: called when the VFS adds a dentry to the hash table. The first |
867 | dentry passed to d_hash is the parent directory that the name is | 876 | dentry passed to d_hash is the parent directory that the name is |
868 | to be hashed into. The inode is the dentry's inode. | 877 | to be hashed into. The inode is the dentry's inode. |