@@ -2643,8 +2643,7 @@ static void __do_request(struct ceph_mds_client *mdsc,
list_add(&req->r_wait, &mdsc->waiting_for_map);
return;
}
- if (!(mdsc->fsc->mount_options->flags &
- CEPH_MOUNT_OPT_MOUNTWAIT) &&
+ if (!ceph_test_mount_opt(mdsc->fsc, MOUNTWAIT) &&
!ceph_mdsmap_is_cluster_available(mdsc->mdsmap)) {
err = -EHOSTUNREACH;
goto finish;
@@ -992,7 +992,7 @@ static struct dentry *ceph_real_mount(struct ceph_fs_client *fsc,
goto out;
/* setup fscache */
- if (fsc->mount_options->flags & CEPH_MOUNT_OPT_FSCACHE) {
+ if (ceph_test_mount_opt(fsc, FSCACHE)) {
err = ceph_fscache_register_fs(fsc, fc);
if (err < 0)
goto out;