diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-06-15 01:55:58 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-06-15 01:55:58 +0000 |
commit | 53b3988d474435254a3b053a68bb24ce9e439295 (patch) | |
tree | f8da8e40f01f4ad02bbd76b8c9920749b118235f /fs/vfat | |
parent | b0cb48abe83d1a4389ea938bf624f8baa82c5047 (diff) |
Merge with 2.3.99-pre9.
Diffstat (limited to 'fs/vfat')
-rw-r--r-- | fs/vfat/namei.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/fs/vfat/namei.c b/fs/vfat/namei.c index ceb67870d..0439d63fc 100644 --- a/fs/vfat/namei.c +++ b/fs/vfat/namei.c @@ -961,24 +961,6 @@ static int vfat_find(struct inode *dir,struct qstr* qname, 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 @@ struct dentry *vfat_lookup(struct inode *dir,struct dentry *dentry) 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 @@ int vfat_unlink(struct inode *dir, struct dentry* dentry) mark_inode_dirty(dentry->d_inode); /* releases bh */ vfat_remove_entry(dir,&sinfo,bh,de); - d_delete(dentry); return res; } |