Skip to content

Commit

Permalink
[PATCH vfs-2.6 4/6] vfs: remove unnecessary fsnotify_d_instantiate()
Browse files Browse the repository at this point in the history
This calls d_move(), so fsnotify_d_instantiate() is unnecessary like
rename path.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
  • Loading branch information
OGAWA Hirofumi authored and Al Viro committed Oct 23, 2008
1 parent 360da90 commit 8f3dfaa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
new = __d_find_alias(inode, 1);
if (new) {
BUG_ON(!(new->d_flags & DCACHE_DISCONNECTED));
fsnotify_d_instantiate(new, inode);
spin_unlock(&dcache_lock);
security_d_instantiate(new, inode);
d_rehash(dentry);
Expand Down

0 comments on commit 8f3dfaa

Please sign in to comment.