Skip to contentSkip to conversation

: real_lookup flags

TRIVIAL Maneesh Soni 1 participant 1 message Jul 24, 2002 VFS

lore
Share & tools
lore
#0 lore raw

Hi Al,

do_lookup always calls real_lookup with LOOKUP_CONTINUE instead of "flags" passed to it. Please consider following patch correcting that.

Thanks
Maneesh

fs/namei.c +1 -1
diff -urN linux-2.5.27-base/fs/namei.c linux-2.5.27-LC/fs/namei.c
@@ -515,7 +515,7 @@
 	unlock_nd(nd);
 
 need_lookup:
-	dentry = real_lookup(nd->dentry, name, LOOKUP_CONTINUE);
+	dentry = real_lookup(nd->dentry, name, flags);
 	if (IS_ERR(dentry))
 		goto fail;
 	mntget(mnt);
Signature · 5 lines
Maneesh Soni
IBM Linux Technology Center, 
IBM India Software Lab, Bangalore.
Phone: +91-80-5044999 email: [email protected]
http://lse.sourceforge.net/locking/rcupdate.html