patch-2.3.99-pre9 linux/fs/vfat/namei.c
Next file: linux/include/asm-alpha/ide.h
Previous file: linux/fs/umsdos/rdir.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Sat May 20 10:55:29 2000
- Orig file:
v2.3.99-pre8/linux/fs/vfat/namei.c
- Orig date:
Wed Apr 26 16:34:09 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -961,24 +961,6 @@
return res ? res : -ENOENT;
}
-/* Find a hashed dentry for inode; NULL if there are none */
-static struct dentry *find_alias(struct inode *inode)
-{
- struct list_head *head, *next, *tmp;
- struct dentry *alias;
-
- head = &inode->i_dentry;
- next = inode->i_dentry.next;
- while (next != head) {
- tmp = next;
- next = tmp->next;
- alias = list_entry(tmp, struct dentry, d_alias);
- if (!d_unhashed(alias))
- return dget(alias);
- }
- return NULL;
-}
-
struct dentry *vfat_lookup(struct inode *dir,struct dentry *dentry)
{
int res;
@@ -1005,7 +987,7 @@
fat_brelse(dir->i_sb, bh);
if (res)
return ERR_PTR(res);
- alias = find_alias(inode);
+ alias = d_find_alias(inode);
if (alias) {
if (d_invalidate(alias)==0)
dput(alias);
@@ -1116,7 +1098,6 @@
mark_inode_dirty(dentry->d_inode);
/* releases bh */
vfat_remove_entry(dir,&sinfo,bh,de);
- d_delete(dentry);
return res;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)