GIT: unionfs2-2.6.27.y: fs: Introduce path{get,put}
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:55 EDT 2010
commit e60330d66f4bd50d561857c11649e498d615fac8
Author: Erez Zadok <ezkcs.sunysb.edu>
Date: Sun Mar 18 19:23:52 2007 -0400
fs: Introduce path{get,put}
Export drop_pagecache_sb symbol (for branch-management).
Signed-off-by: Erez Zadok <ezkcs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipekcs.sunysb.edu>
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 68f8c32..e96e84b 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -3,7 +3,7 @@
#include <linux/dcache.h>
#include <linux/linkage.h>
-#include <linux/path.h>
+#include <linux/mount.h>
struct vfsmount;
@@ -90,4 +90,16 @@ static inline char *nd_get_link(struct nameidata *nd)
return nd->saved_names[nd->depth];
}
+static inline void pathget(struct path *path)
+{
+ mntget(path->mnt);
+ dget(path->dentry);
+}
+
+static inline void pathput(struct path *path)
+{
+ dput(path->dentry);
+ mntput(path->mnt);
+}
+
#endif /* _LINUX_NAMEI_H */
More information about the unionfs-cvs
mailing list