Merge branch 'bugzilla-16357' into release
[firefly-linux-kernel-4.4.55.git] / fs / ceph / ioctl.c
index 8a5bcae6284631cc6f020c1f71e03b8eb6e0821e..d085f07756b42159c7c3b916b123bdeabbfc35b8 100644 (file)
@@ -98,7 +98,7 @@ static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg)
        struct ceph_ioctl_dataloc dl;
        struct inode *inode = file->f_dentry->d_inode;
        struct ceph_inode_info *ci = ceph_inode(inode);
-       struct ceph_osd_client *osdc = &ceph_client(inode->i_sb)->osdc;
+       struct ceph_osd_client *osdc = &ceph_sb_to_client(inode->i_sb)->osdc;
        u64 len = 1, olen;
        u64 tmp;
        struct ceph_object_layout ol;