d_path: Make get_dcookie() use a struct path argument
get_dcookie() is always called with a dentry and a vfsmount from a struct path. Make get_dcookie() take it directly as an argument. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: Christoph Hellwig <hch@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
3dcd25f37c
commit
448678a0f3
@ -13,6 +13,7 @@
|
||||
#ifdef CONFIG_PROFILING
|
||||
|
||||
#include <linux/dcache.h>
|
||||
#include <linux/path.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct dcookie_user;
|
||||
@ -43,8 +44,7 @@ void dcookie_unregister(struct dcookie_user * user);
|
||||
*
|
||||
* Returns 0 on success, with *cookie filled in
|
||||
*/
|
||||
int get_dcookie(struct dentry * dentry, struct vfsmount * vfsmnt,
|
||||
unsigned long * cookie);
|
||||
int get_dcookie(struct path *path, unsigned long *cookie);
|
||||
|
||||
#else
|
||||
|
||||
@ -57,13 +57,12 @@ static inline void dcookie_unregister(struct dcookie_user * user)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static inline int get_dcookie(struct dentry * dentry,
|
||||
struct vfsmount * vfsmnt, unsigned long * cookie)
|
||||
|
||||
static inline int get_dcookie(struct path *path, unsigned long *cookie)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PROFILING */
|
||||
|
||||
|
||||
#endif /* DCOOKIES_H */
|
||||
|
Reference in New Issue
Block a user