patch-2.2.7 linux/fs/adfs/namei.c
Next file: linux/fs/affs/dir.c
Previous file: linux/fs/adfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri Apr 23 21:20:37 1999
- Orig file:
v2.2.6/linux/fs/adfs/namei.c
- Orig date:
Tue Jan 20 16:44:58 1998
diff -u --recursive --new-file v2.2.6/linux/fs/adfs/namei.c linux/fs/adfs/namei.c
@@ -98,22 +98,22 @@
return 0;
}
-int adfs_lookup (struct inode *dir, struct dentry *dentry)
+struct dentry *adfs_lookup (struct inode *dir, struct dentry *dentry)
{
struct inode *inode = NULL;
struct adfs_idir_entry de;
unsigned long ino;
if (dentry->d_name.len > ADFS_NAME_LEN)
- return -ENAMETOOLONG;
+ return ERR_PTR(-ENAMETOOLONG);
if (adfs_find_entry (dir, dentry->d_name.name, dentry->d_name.len, &de)) {
ino = de.inode_no;
inode = iget (dir->i_sb, ino);
if (!inode)
- return -EACCES;
+ return ERR_PTR(-EACCES);
}
d_add(dentry, inode);
- return 0;
+ return NULL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)