“2998ab1d450a526a9a3a6292f91239b4fc209db0”上不存在“fs/xfs/libxfs/xfs_dir2_data.c”
提交 42172119 编写于 作者: Y Yan, Zheng 提交者: Ilya Dryomov

ceph: fix dir_auth check in ceph_fill_dirfrag()

-1 is CDIR_AUTH_PARENT, it means dir's auth mds is the same as
inode's auth mds
Signed-off-by: NYan, Zheng <zyan@redhat.com>
上级 a407846e
...@@ -254,6 +254,9 @@ static int ceph_fill_dirfrag(struct inode *inode, ...@@ -254,6 +254,9 @@ static int ceph_fill_dirfrag(struct inode *inode,
diri_auth = ci->i_auth_cap->mds; diri_auth = ci->i_auth_cap->mds;
spin_unlock(&ci->i_ceph_lock); spin_unlock(&ci->i_ceph_lock);
if (mds == -1) /* CDIR_AUTH_PARENT */
mds = diri_auth;
mutex_lock(&ci->i_fragtree_mutex); mutex_lock(&ci->i_fragtree_mutex);
if (ndist == 0 && mds == diri_auth) { if (ndist == 0 && mds == diri_auth) {
/* no delegation info needed. */ /* no delegation info needed. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册