[PATCH vfs-2.6 3/6] vfs: add __d_instantiate() helper
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 15 Oct 2008 22:50:28 +0000 (07:50 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Oct 2008 09:13:17 +0000 (05:13 -0400)
commit360da90029196c9449bc61e5a07ce8404e4cba57
tree7bca57f11b2022633f5c49ec9a1bca9d2d4d1b1a
parente2761a1167633ed943fea29002f990194923d060
[PATCH vfs-2.6 3/6] vfs: add __d_instantiate() helper

This adds __d_instantiate() for users which is already taking
dcache_lock, and replace with it.

The part of d_add_ci() isn't equivalent. But it should be needed
fsnotify_d_instantiate() actually, because the path is to add the
inode to negative dentry.  fsnotify_d_instantiate() should be called
after change from negative to positive.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
fs/dcache.c