summaryrefslogtreecommitdiff
path: root/include/linux/path.h
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2008-02-14 19:34:38 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-14 21:13:33 -0800
commit5dd784d04924be5d8bc066aded0ec3274b20e612 (patch)
treeb92ba8ffd3cad1175a75df0356882e50b5999f98 /include/linux/path.h
parent09da5916baf6d3fb9ac16c125c801ae6ea151f97 (diff)
Introduce path_get()
This introduces the symmetric function to path_put() for getting a reference to the dentry and vfsmount of a struct path in the right order. Signed-off-by: Jan Blunck <jblunck@suse.de> Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/path.h')
-rw-r--r--include/linux/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/path.h b/include/linux/path.h
index 4d976f959f33..915e0c382a51 100644
--- a/include/linux/path.h
+++ b/include/linux/path.h
@@ -9,6 +9,7 @@ struct path {
struct dentry *dentry;
};
+extern void path_get(struct path *);
extern void path_put(struct path *);
#endif /* _LINUX_PATH_H */