Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118460
b: refs/heads/master
c: 1c13a24
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Nov 6, 2008
1 parent a311f9b commit 74d0e86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b52467243c7167b3a267ddbcbb14d550f28eb4a
refs/heads/master: 1c13a243a461dd5b089d29e5d57f260c990e462c
13 changes: 6 additions & 7 deletions trunk/fs/fat/namei_vfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,13 +745,12 @@ static struct dentry *vfat_lookup(struct inode *dir, struct dentry *dentry,
*
* Switch to new one for reason of locality if possible.
*/
if (d_invalidate(alias) == 0)
dput(alias);
else {
iput(inode);
unlock_super(sb);
return alias;
}
BUG_ON(d_unhashed(alias));
if (!S_ISDIR(inode->i_mode))
d_move(alias, dentry);
iput(inode);
unlock_super(sb);
return alias;
}
out:
unlock_super(sb);
Expand Down

0 comments on commit 74d0e86

Please sign in to comment.