mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [CFR][PATCH] namei fixes (18/19)
@ 2005-05-19 22:57 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2005-05-19 22:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

(18/19)

Cosmetical cleanups - __follow_mount() calls in __link_path_walk() absorbed
into do_lookup().

Obviously equivalent transformation.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
----
diff -urN RC12-rc4-17/fs/namei.c RC12-rc4-18/fs/namei.c
--- RC12-rc4-17/fs/namei.c	2005-05-19 16:39:46.911156004 -0400
+++ RC12-rc4-18/fs/namei.c	2005-05-19 16:39:48.010936857 -0400
@@ -682,6 +682,7 @@
 done:
 	path->mnt = mnt;
 	path->dentry = dentry;
+	__follow_mount(path);
 	return 0;
 
 need_lookup:
@@ -789,8 +790,6 @@
 		err = do_lookup(nd, &this, &next);
 		if (err)
 			break;
-		/* Check mountpoints.. */
-		__follow_mount(&next);
 
 		err = -ENOENT;
 		inode = next.dentry->d_inode;
@@ -850,7 +849,6 @@
 		err = do_lookup(nd, &this, &next);
 		if (err)
 			break;
-		__follow_mount(&next);
 		inode = next.dentry->d_inode;
 		if ((lookup_flags & LOOKUP_FOLLOW)
 		    && inode && inode->i_op && inode->i_op->follow_link) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-19 23:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19 22:57 [CFR][PATCH] namei fixes (18/19) Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®