Whamcloud - gitweb
LU-8238 ldlm: rid of obsolete param of ldlm_resource_get()
[fs/lustre-release.git] / lustre / mgs / mgs_barrier.c
index 9087055..bf8a725 100644 (file)
@@ -133,7 +133,7 @@ static int mgs_barrier_glimpse_lock(const struct lu_env *env,
        if (rc)
                RETURN(rc);
 
-       res = ldlm_resource_get(mgs->mgs_obd->obd_namespace, NULL, &res_id,
+       res = ldlm_resource_get(mgs->mgs_obd->obd_namespace, &res_id,
                                LDLM_PLAIN, 0);
        if (IS_ERR(res))
                RETURN(PTR_ERR(res));
@@ -370,7 +370,7 @@ static int mgs_barrier_freeze(const struct lu_env *env,
                        rc = -EALREADY;
                        break;
                }
-               /* fallthrough */
+               fallthrough;
        case BS_INIT:
        case BS_THAWED:
        case BS_EXPIRED:
@@ -688,7 +688,7 @@ static int mgs_barrier_rescan(const struct lu_env *env,
                        rc = -EBUSY;
                        break;
                }
-               /* fallthrough */
+               fallthrough;
        case BS_INIT:
        case BS_THAWED:
        case BS_EXPIRED: