patch-2.2.7 linux/fs/affs/namei.c
Next file: linux/fs/autofs/dir.c
Previous file: linux/fs/affs/dir.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Apr 23 21:20:37 1999
- Orig file:
v2.2.6/linux/fs/affs/namei.c
- Orig date:
Fri Apr 16 14:47:31 1999
diff -u --recursive --new-file v2.2.6/linux/fs/affs/namei.c linux/fs/affs/namei.c
@@ -201,7 +201,7 @@
return bh;
}
-int
+struct dentry *
affs_lookup(struct inode *dir, struct dentry *dentry)
{
unsigned long ino;
@@ -218,11 +218,11 @@
affs_brelse(bh);
inode = iget(dir->i_sb,ino);
if (!inode)
- return -EACCES;
+ return ERR_PTR(-EACCES);
}
dentry->d_op = &affs_dentry_operations;
d_add(dentry,inode);
- return 0;
+ return NULL;
}
int
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)