diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index f89698cdbc413c65eda1cca5cbd07cf410eed20a..12f58d22e01798844d17d9b526cf19d1ba112a36 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -592,7 +592,7 @@ static int __build_xattrs(struct inode *inode) xattr_version = ci->i_xattrs.version; spin_unlock(&ci->i_ceph_lock); - xattrs = kcalloc(numattr, sizeof(struct ceph_xattr *), + xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *), GFP_NOFS); err = -ENOMEM; if (!xattrs)