aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r--include/linux/dcache.h18
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 {
141 char *(*d_dname)(struct dentry *, char *, int); 141 char *(*d_dname)(struct dentry *, char *, int);
142}; 142};
143 143
144/* the dentry parameter passed to d_hash and d_compare is the parent 144/*
145 * Locking rules for dentry_operations callbacks are to be found in
146 * Documentation/filesystems/Locking. Keep it updated!
147 *
148 * the dentry parameter passed to d_hash and d_compare is the parent
145 * directory of the entries to be compared. It is used in case these 149 * directory of the entries to be compared. It is used in case these
146 * functions need any directory specific information for determining 150 * functions need any directory specific information for determining
147 * equivalency classes. Using the dentry itself might not work, as it 151 * equivalency classes. Using the dentry itself might not work, as it
148 * might be a negative dentry which has no information associated with 152 * might be a negative dentry which has no information associated with
149 * it */ 153 * it.
150
151/*
152locking rules:
153 big lock dcache_lock d_lock may block
154d_revalidate: no no no yes
155d_hash no no no yes
156d_compare: no yes yes no
157d_delete: no yes no no
158d_release: no no no yes
159d_iput: no no no yes
160 */ 154 */
161 155
162/* d_flags entries */ 156/* d_flags entries */