summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2011-01-18 22:37:28 +0100
committerSage Weil <sage@newdream.net>2011-02-20 04:59:14 +0100
commit97d79b403ef03f729883246208ef5d8a2ebc4d68 (patch)
tree6badfd07e1ae880bd30f99dfb55227d3210b6e3a /fs/ceph/super.h
parentceph: queue cap_snaps once per realm (diff)
downloadlinux-97d79b403ef03f729883246208ef5d8a2ebc4d68.tar.xz
linux-97d79b403ef03f729883246208ef5d8a2ebc4d68.zip
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 949854d0, 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>
Diffstat (limited to '')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 6e0826695112..c01aa646b407 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -207,6 +207,7 @@ struct ceph_dentry_info {
struct dentry *dentry;
u64 time;
u64 offset;
+ struct inode *parent_inode;
};
struct ceph_inode_xattrs_info {