linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* vfs-scale, nd->inode after __do_follow_link()
@ 2011-01-14  2:10 J. R. Okajima
  2011-01-14  2:33 ` J. R. Okajima
  2011-01-14  4:09 ` Nick Piggin
  0 siblings, 2 replies; 11+ messages in thread
From: J. R. Okajima @ 2011-01-14  2:10 UTC (permalink / raw)
  To: Nick Piggin; +Cc: linux-fsdevel, linux-kernel


Isn't it path.dentry->d_inode instead of nd.inode?

J. R. Okajima

diff --git a/fs/namei.c b/fs/namei.c
index 5bb7588..1df3bee 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2356,8 +2374,9 @@ reval:
 			goto exit_dput;
 		error = __do_follow_link(&path, &nd, &cookie);
 		if (unlikely(error)) {
-			if (!IS_ERR(cookie) && nd.inode->i_op->put_link)
-				nd.inode->i_op->put_link(path.dentry, &nd, cookie);
+			struct dentry *i = path.dentry->d_inode;
+			if (!IS_ERR(cookie) && i->i_op->put_link)
+				i->i_op->put_link(path.dentry, &nd, cookie);
 			/* nd.path had been dropped */
 			nd.path = path;
 			goto out_path;

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-14 23:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14  2:10 vfs-scale, nd->inode after __do_follow_link() J. R. Okajima
2011-01-14  2:33 ` J. R. Okajima
2011-01-14  4:09 ` Nick Piggin
2011-01-14  4:41   ` J. R. Okajima
2011-01-14  5:28   ` Al Viro
2011-01-14  5:38     ` J. R. Okajima
2011-01-14  5:40       ` J. R. Okajima
2011-01-14  8:40     ` Nick Piggin
2011-01-14  9:17       ` Sedat Dilek
2011-01-14 23:34         ` J.H.
2011-01-14 12:54       ` J. R. Okajima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).