patch-2.1.127 linux/include/asm-sparc64/namei.h

Next file: linux/include/asm-sparc64/oplib.h
Previous file: linux/include/asm-sparc64/mmu_context.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/include/asm-sparc64/namei.h linux/include/asm-sparc64/namei.h
@@ -12,7 +12,7 @@
 #define SPARC_SOL_EMUL "usr/gnemul/solaris/"
 
 static inline struct dentry *
-__sparc64_lookup_dentry(const char *name, int follow_link)
+__sparc64_lookup_dentry(const char *name, int lookup_flags)
 {
 	struct dentry *base;
 	char *emul;
@@ -29,18 +29,18 @@
 		return NULL;
 	}
 
-	base = lookup_dentry (emul, dget (current->fs->root), 1);
+	base = lookup_dentry (emul, dget (current->fs->root), (LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_SLASHOK));
 			
 	if (IS_ERR (base)) return NULL;
 	
-	base = lookup_dentry (name, base, follow_link);
+	base = lookup_dentry (name, base, lookup_flags);
 	
 	if (IS_ERR (base)) return NULL;
 	
 	if (!base->d_inode) {
 		struct dentry *fromroot;
 		
-		fromroot = lookup_dentry (name, dget (current->fs->root), follow_link);
+		fromroot = lookup_dentry (name, dget (current->fs->root), lookup_flags);
 		
 		if (IS_ERR (fromroot)) return base;
 		
@@ -55,9 +55,9 @@
 	return base;
 }
 
-#define __prefix_lookup_dentry(name, follow_link)				\
+#define __prefix_lookup_dentry(name, lookup_flags)				\
 	if (current->personality) {						\
-		dentry = __sparc64_lookup_dentry (name, follow_link);		\
+		dentry = __sparc64_lookup_dentry (name, lookup_flags);		\
 		if (dentry) return dentry;					\
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov