diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 17:49:22 +1100 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 17:50:18 +1100 |
commit | 5eef7fa905c814826f518aca2d414ca77508ce30 (patch) | |
tree | 53c40fdbe92c30910befbad14ebace3ab9a342c0 | |
parent | fbc8d4c04626e015b18cc61199f505920abb48f0 (diff) | |
download | linux-5eef7fa905c814826f518aca2d414ca77508ce30.tar.gz linux-5eef7fa905c814826f518aca2d414ca77508ce30.tar.bz2 linux-5eef7fa905c814826f518aca2d414ca77508ce30.zip |
fs: dcache documentation cleanup
Remove redundant (and incorrect, since dcache RCU lookup) dentry locking
documentation and point to the canonical document.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
-rw-r--r-- | include/linux/dcache.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 6a4aea30aa09..fff975576b5b 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -141,22 +141,16 @@ struct dentry_operations { char *(*d_dname)(struct dentry *, char *, int); }; -/* the dentry parameter passed to d_hash and d_compare is the parent +/* + * Locking rules for dentry_operations callbacks are to be found in + * Documentation/filesystems/Locking. Keep it updated! + * + * the dentry parameter passed to d_hash and d_compare is the parent * directory of the entries to be compared. It is used in case these * functions need any directory specific information for determining * equivalency classes. Using the dentry itself might not work, as it * might be a negative dentry which has no information associated with - * it */ - -/* -locking rules: - big lock dcache_lock d_lock may block -d_revalidate: no no no yes -d_hash no no no yes -d_compare: no yes yes no -d_delete: no yes no no -d_release: no no no yes -d_iput: no no no yes + * it. */ /* d_flags entries */ |