]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: keep reference to parent inode on ceph_dentry
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 18 Jan 2011 21:37:28 +0000 (13:37 -0800)
committerSage Weil <sage@newdream.net>
Sun, 20 Feb 2011 03:59:14 +0000 (19:59 -0800)
commit096794ed54d4e8831eb104061d9270d3a5b1b035
tree6badfd07e1ae880bd30f99dfb55227d3210b6e3a
parentb1337fad0b6cccd78ffb356f6b929edd46533819
ceph: keep reference to parent inode on ceph_dentry

When creating a new dentry we now hold a reference to the parent
inode in the ceph_dentry.  This is required due to the new RCU
changes from 1d3b7543, which set dentry->d_parent to NULL in d_kill before
calling the ->release() callback.  If/when that behavior is changed, we can
revert this hack.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
fs/ceph/super.h