patch-2.3.99-pre4 linux/include/asm-arm/namei.h

Next file: linux/include/asm-arm/proc-armv/pgtable.h
Previous file: linux/include/asm-arm/cpu-single.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre3/linux/include/asm-arm/namei.h linux/include/asm-arm/namei.h
@@ -12,51 +12,14 @@
 
 #define ARM_BSD_EMUL "usr/gnemul/bsd/"
 
-static inline struct dentry *
-__arm_lookup_dentry(const char *name, int lookup_flags)
+static inline char *__emul_prefix(void)
 {
-	struct dentry *base;
-	char *emul;
-
 	switch (current->personality) {
 	case PER_BSD:
-		emul = ARM_BSD_EMUL; break;
+		return ARM_BSD_EMUL;
 	default:
 		return NULL;
 	}
-
-	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, lookup_flags);
-	
-	if (IS_ERR (base)) return NULL;
-	
-	if (!base->d_inode) {
-		struct dentry *fromroot;
-		
-		fromroot = lookup_dentry (name, dget (current->fs->root), 
-					  lookup_flags);
-		
-		if (IS_ERR (fromroot)) return base;
-		
-		if (fromroot->d_inode) {
-			dput(base);
-			return fromroot;
-		}
-		
-		dput(fromroot);
-	}
-	
-	return base;
 }
-
-#define __prefix_lookup_dentry(name, lookup_flags)			\
-	if (current->personality) {					\
-		dentry = __arm_lookup_dentry (name, lookup_flags);	\
-		if (dentry) return dentry;				\
-	}
 
 #endif /* __ASMARM_NAMEI_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)