patch-2.1.129 linux/include/asm-mips/namei.h

Next file: linux/include/asm-ppc/adb.h
Previous file: linux/include/asm-m68k/namei.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/include/asm-mips/namei.h linux/include/asm-mips/namei.h
@@ -3,7 +3,7 @@
  *
  * Included from linux/fs/namei.c
  *
- * $Id: namei.h,v 1.9 1998/05/01 01:35:59 ralf Exp $
+ * $Id: namei.h,v 1.10 1998/10/28 08:13:24 jj Exp $
  */
 #ifndef __ASM_MIPS_NAMEI_H
 #define __ASM_MIPS_NAMEI_H
@@ -14,7 +14,7 @@
 #define IRIX32_EMUL "usr/gnemul/irix/"
 
 static inline struct dentry *
-__mips_lookup_dentry(const char *name, int follow_link)
+__mips_lookup_dentry(const char *name, int lookup_flags)
 {
 	struct dentry *base;
 
@@ -22,11 +22,12 @@
 		return ERR_PTR(-ENOENT);
 
 	base = lookup_dentry (IRIX32_EMUL,
-			dget (current->fs->root), 1);
+			dget (current->fs->root), 
+			(LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_SLASHOK));
 			
 	if (IS_ERR (base)) return base;
 	
-	base = lookup_dentry (name, base, follow_link);
+	base = lookup_dentry (name, base, lookup_flags);
 
 	if (IS_ERR (base)) return base;
 
@@ -40,13 +41,13 @@
 
 #ifdef CONFIG_BINFMT_IRIX
 
-#define __prefix_lookup_dentry(name, follow_link)				\
-	dentry = __mips_lookup_dentry (name, follow_link);			\
+#define __prefix_lookup_dentry(name, lookup_flags)				\
+	dentry = __mips_lookup_dentry (name, lookup_flags);			\
 	if (!IS_ERR (dentry)) return dentry;
 
 #else /* !defined(CONFIG_BINFMT_IRIX) */
 
-#define __prefix_lookup_dentry(name, follow_link) \
+#define __prefix_lookup_dentry(name, lookup_flags) \
         do {} while (0)
 
 #endif /* !defined(CONFIG_BINFMT_IRIX) */

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