diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-02 17:23:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-02 17:23:30 -0500 |
commit | 8966be90304b394fd6a2c5af7b6b3abe2df3889c (patch) | |
tree | 9893ca0f2e1c97d4ed5d37fee8502a77f0c3b7d2 /include | |
parent | 2273d5ccb882106a74c7b780a6bfa16fb210cd24 (diff) |
vfs: trivial __d_lookup_rcu() cleanups
These don't change any semantics, but they clean up the code a bit and
mark some arguments appropriately 'const'.
They came up as I was doing the word-at-a-time dcache name accessor
code, and cleaning this up now allows me to send out a smaller relevant
interesting patch for the experimental stuff.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dcache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index d64a55b23afd..61b24261e07a 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
@@ -309,7 +309,8 @@ extern struct dentry *d_ancestor(struct dentry *, struct dentry *); | |||
309 | extern struct dentry *d_lookup(struct dentry *, struct qstr *); | 309 | extern struct dentry *d_lookup(struct dentry *, struct qstr *); |
310 | extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *); | 310 | extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *); |
311 | extern struct dentry *__d_lookup(struct dentry *, struct qstr *); | 311 | extern struct dentry *__d_lookup(struct dentry *, struct qstr *); |
312 | extern struct dentry *__d_lookup_rcu(struct dentry *parent, struct qstr *name, | 312 | extern struct dentry *__d_lookup_rcu(const struct dentry *parent, |
313 | const struct qstr *name, | ||
313 | unsigned *seq, struct inode **inode); | 314 | unsigned *seq, struct inode **inode); |
314 | 315 | ||
315 | /** | 316 | /** |