OSDN Git Service

ceph: do not assume r_old_dentry[_dir] always set together
authorSage Weil <sage@inktank.com>
Tue, 5 Feb 2013 21:40:09 +0000 (13:40 -0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 3 Apr 2014 02:33:53 +0000 (10:33 +0800)
commit844d87c3329980e2b1849cf53205d7fa965d8995
tree46e524da39d068d18d03502323871099144dec4c
parent752c8bdcfe88f27a17c5c9264df928fd145a4b30
ceph: do not assume r_old_dentry[_dir] always set together

Do not assume that r_old_dentry implies that r_old_dentry_dir is also
true.  Separate out the ref cleanup and make the debugs dump behave when
it is NULL.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/debugfs.c
fs/ceph/mds_client.c