diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:49:28 -0500 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 01:50:20 -0500 |
commit | b1e6a015a580ad145689ad1d6b4aa0e03e6c868b (patch) | |
tree | 57a10ef164e4d2f798d9b832dbeaf973aca2ab83 /Documentation/filesystems/Locking | |
parent | 621e155a3591962420eacdd39f6f0aa29ceb221e (diff) |
fs: change d_hash for rcu-walk
Change d_hash so it may be called from lock-free RCU lookups. See similar
patch for d_compare for details.
For in-tree filesystems, this is just a mechanical change.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'Documentation/filesystems/Locking')
-rw-r--r-- | Documentation/filesystems/Locking | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index 9a76f8d8bf95..a15ee207b449 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
@@ -10,7 +10,8 @@ be able to use diff(1). | |||
10 | --------------------------- dentry_operations -------------------------- | 10 | --------------------------- dentry_operations -------------------------- |
11 | prototypes: | 11 | prototypes: |
12 | int (*d_revalidate)(struct dentry *, int); | 12 | int (*d_revalidate)(struct dentry *, int); |
13 | int (*d_hash) (struct dentry *, struct qstr *); | 13 | int (*d_hash)(const struct dentry *, const struct inode *, |
14 | struct qstr *); | ||
14 | int (*d_compare)(const struct dentry *, const struct inode *, | 15 | int (*d_compare)(const struct dentry *, const struct inode *, |
15 | const struct dentry *, const struct inode *, | 16 | const struct dentry *, const struct inode *, |
16 | unsigned int, const char *, const struct qstr *); | 17 | unsigned int, const char *, const struct qstr *); |
@@ -22,7 +23,7 @@ prototypes: | |||
22 | locking rules: | 23 | locking rules: |
23 | dcache_lock rename_lock ->d_lock may block | 24 | dcache_lock rename_lock ->d_lock may block |
24 | d_revalidate: no no no yes | 25 | d_revalidate: no no no yes |
25 | d_hash no no no yes | 26 | d_hash no no no no |
26 | d_compare: no yes no no | 27 | d_compare: no yes no no |
27 | d_delete: yes no yes no | 28 | d_delete: yes no yes no |
28 | d_release: no no no yes | 29 | d_release: no no no yes |