|
@@ -738,7 +738,7 @@ static struct dentry *open_root_dentry(struct ceph_client *client,
|
|
dout("open_root_inode opening '%s'\n", path);
|
|
dout("open_root_inode opening '%s'\n", path);
|
|
req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETATTR, USE_ANY_MDS);
|
|
req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETATTR, USE_ANY_MDS);
|
|
if (IS_ERR(req))
|
|
if (IS_ERR(req))
|
|
- return ERR_PTR(PTR_ERR(req));
|
|
|
|
|
|
+ return ERR_CAST(req);
|
|
req->r_path1 = kstrdup(path, GFP_NOFS);
|
|
req->r_path1 = kstrdup(path, GFP_NOFS);
|
|
req->r_ino1.ino = CEPH_INO_ROOT;
|
|
req->r_ino1.ino = CEPH_INO_ROOT;
|
|
req->r_ino1.snap = CEPH_NOSNAP;
|
|
req->r_ino1.snap = CEPH_NOSNAP;
|