commit 797cc8fd4adebc469db48a2e5b94a518688c9714
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 63f5035..93a1c36 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -3,6 +3,7 @@
 
 #include <linux/dcache.h>
 #include <linux/linkage.h>
+#include <linux/mount.h>
 
 struct vfsmount;
 
@@ -106,4 +107,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 */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to