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)
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>

No differences found