ceph: explicitly reference rename old_dentry parent dir in request
authorSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:31:14 +0000 (11:31 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 Jul 2011 18:31:14 +0000 (11:31 -0700)
commit41b02e1f9bb87b07d792b64aaeb7af3d00d69cd2
tree87c9524ff96cbff2ff29d659cbefd516b553ca1f
parent4f1772645296a230e04f5c53e79cfb6f841ce634
ceph: explicitly reference rename old_dentry parent dir in request

We carry a pin on the parent directory for the rename source and dest
dentries.  For the source it's r_locked_dir; we need to explicitly
reference the old_dentry parent as well, since the dentry's d_parent may
change between when the request was created and pinned and when it is
freed.

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