Skip to content

Commit 5eef7fa

Browse files
author
Nick Piggin
committed
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>
1 parent fbc8d4c commit 5eef7fa

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

‎include/linux/dcache.h‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,16 @@ struct dentry_operations {
141141
char *(*d_dname)(struct dentry *, char *, int);
142142
};
143143

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
145149
* directory of the entries to be compared. It is used in case these
146150
* functions need any directory specific information for determining
147151
* equivalency classes. Using the dentry itself might not work, as it
148152
* might be a negative dentry which has no information associated with
149-
* it */
150-
151-
/*
152-
locking rules:
153-
big lock dcache_lock d_lock may block
154-
d_revalidate: no no no yes
155-
d_hash no no no yes
156-
d_compare: no yes yes no
157-
d_delete: no yes no no
158-
d_release: no no no yes
159-
d_iput: no no no yes
153+
* it.
160154
*/
161155

162156
/* d_flags entries */

0 commit comments

Comments
 (0)