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>
This commit is contained in:
Jan Blunck 2008-02-14 19:34:38 -08:00 committed by Linus Torvalds
parent 09da5916ba
commit 5dd784d049
2 changed files with 16 additions and 2 deletions

View file

@ -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 */