提交 7e8a2952 编写于 作者: I Ilya Dryomov

ceph: fix sizeof(struct tYpO *) typo

struct ceph_xattr -> struct ceph_inode_xattr
Reported-by: NToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: NIlya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: NAlex Elder <elder@linaro.org>
上级 1a295bd8
...@@ -592,7 +592,7 @@ static int __build_xattrs(struct inode *inode) ...@@ -592,7 +592,7 @@ static int __build_xattrs(struct inode *inode)
xattr_version = ci->i_xattrs.version; xattr_version = ci->i_xattrs.version;
spin_unlock(&ci->i_ceph_lock); spin_unlock(&ci->i_ceph_lock);
xattrs = kcalloc(numattr, sizeof(struct ceph_xattr *), xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *),
GFP_NOFS); GFP_NOFS);
err = -ENOMEM; err = -ENOMEM;
if (!xattrs) if (!xattrs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册