Inode's parent dentry can be NULL, which causes segment fault in
Locker::acquire_locks
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
// open_remote_ino() with 'want_locked=true' when the srcdn or destdn
// is traversed.
if (srcdnl->is_remote())
- xlocks.insert(&srci->get_parent_dn()->lock);
+ xlocks.insert(&srci->get_projected_parent_dn()->lock);
if (destdnl->is_remote())
- xlocks.insert(&oldin->get_parent_dn()->lock);
+ xlocks.insert(&oldin->get_projected_parent_dn()->lock);
}
// we need to update srci's ctime. xlock its least contended lock to do that...