提交 e8a74987 编写于 作者: S Sage Weil

ceph: skip set_dentry_offset work if directory not I_COMPLETE

Signed-off-by: NSage Weil <sage@newdream.net>
上级 f1f2765f
......@@ -861,6 +861,10 @@ static void ceph_set_dentry_offset(struct dentry *dn)
di = ceph_dentry(dn);
spin_lock(&inode->i_lock);
if ((ceph_inode(inode)->i_ceph_flags & CEPH_I_COMPLETE) == 0) {
spin_unlock(&inode->i_lock);
return;
}
di->offset = ceph_inode(inode)->i_max_offset++;
spin_unlock(&inode->i_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册