[PATCH vfs-2.6 2/6] vfs: add d_ancestor()
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:16 +0000 (05:13 -0400)
commite2761a1167633ed943fea29002f990194923d060
treee91816e85c7721fcff72e5f84336b1dde9d1ac17
parent871c0067d53ba2dc35897c7da1da675bf4c70511
[PATCH vfs-2.6 2/6] vfs: add d_ancestor()

This adds d_ancestor() instead of d_isparent(), then use it.

If new_dentry == old_dentry, is_subdir() returns 1, looks strange.
"new_dentry == old_dentry" is not subdir obviously. But I'm not
checking callers for now, so this keeps current behavior.

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