The patch titled
     Introduce path_get()
has been removed from the -mm tree.  Its filename was
     introduce-path_get.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: Introduce path_get()
From: Jan Blunck <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
Signed-off-by: Andreas Gruenbacher <[EMAIL PROTECTED]>
Acked-by: Christoph Hellwig <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 fs/namei.c           |   17 +++++++++++++++--
 include/linux/path.h |    1 +
 2 files changed, 16 insertions(+), 2 deletions(-)

diff -puN fs/namei.c~introduce-path_get fs/namei.c
--- a/fs/namei.c~introduce-path_get
+++ a/fs/namei.c
@@ -363,6 +363,19 @@ int deny_write_access(struct file * file
 }
 
 /**
+ * path_get - get a reference to a path
+ * @path: path to get the reference to
+ *
+ * Given a path increment the reference count to the dentry and the vfsmount.
+ */
+void path_get(struct path *path)
+{
+       mntget(path->mnt);
+       dget(path->dentry);
+}
+EXPORT_SYMBOL(path_get);
+
+/**
  * path_put - put a reference to a path
  * @path: path to put the reference to
  *
@@ -1160,8 +1173,8 @@ static int do_path_lookup(int dfd, const
                if (retval)
                        goto fput_fail;
 
-               nd->path.mnt = mntget(file->f_path.mnt);
-               nd->path.dentry = dget(dentry);
+               nd->path = file->f_path;
+               path_get(&file->f_path);
 
                fput_light(file, fput_needed);
        }
diff -puN include/linux/path.h~introduce-path_get include/linux/path.h
--- a/include/linux/path.h~introduce-path_get
+++ a/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 */
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch
introduce-path_put-unionfs.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to