patch-2.2.7 linux/fs/hfs/dir_dbl.c
Next file: linux/fs/hfs/dir_nat.c
Previous file: linux/fs/hfs/dir_cap.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Apr 23 21:20:37 1999
- Orig file:
v2.2.6/linux/fs/hfs/dir_dbl.c
- Orig date:
Sun Nov 8 14:03:06 1998
diff -u --recursive --new-file v2.2.6/linux/fs/hfs/dir_dbl.c linux/fs/hfs/dir_dbl.c
@@ -23,7 +23,7 @@
/*================ Forward declarations ================*/
-static int dbl_lookup(struct inode *, struct dentry *);
+static struct dentry *dbl_lookup(struct inode *, struct dentry *);
static int dbl_readdir(struct file *, void *, filldir_t);
static int dbl_create(struct inode *, struct dentry *, int);
static int dbl_mkdir(struct inode *, struct dentry *, int);
@@ -130,17 +130,13 @@
* the inode for the directory and the name (and its length) of the
* entry.
*/
-static int dbl_lookup(struct inode * dir, struct dentry *dentry)
+static struct dentry *dbl_lookup(struct inode * dir, struct dentry *dentry)
{
struct hfs_name cname;
struct hfs_cat_entry *entry;
struct hfs_cat_key key;
struct inode *inode = NULL;
- if (!dir || !S_ISDIR(dir->i_mode)) {
- return -ENOENT;
- }
-
dentry->d_op = &hfs_dentry_operations;
entry = HFS_I(dir)->entry;
@@ -173,7 +169,7 @@
done:
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)