Whamcloud - gitweb
LU-9558 llite: handle struct vm_operations changes
[fs/lustre-release.git] / lustre / quota / qsd_lock.c
index c9996bc..c63a4e3 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <lustre_dlm.h>
 #include <obd_class.h>
+#include <lustre_swab.h>
 
 #include "qsd_internal.h"
 
@@ -148,6 +149,9 @@ static int qsd_common_glimpse_ast(struct ptlrpc_request *req,
        if (*desc == NULL)
                RETURN(-EFAULT);
 
+       if (ptlrpc_req_need_swab(req))
+               lustre_swab_gl_lquota_desc(*desc);
+
        /* prepare reply */
        req_capsule_set_size(&req->rq_pill, &RMF_DLM_LVB, RCL_SERVER,
                             sizeof(struct lquota_lvb));
@@ -208,7 +212,7 @@ static int qsd_glb_blocking_ast(struct ldlm_lock *lock,
                write_unlock(&qqi->qqi_qsd->qsd_lock);
 
                CDEBUG(D_QUOTA, "%s: losing global index lock for %s type\n",
-                      qqi->qqi_qsd->qsd_svname, QTYPE_NAME((qqi->qqi_qtype)));
+                      qqi->qqi_qsd->qsd_svname, qtype_name((qqi->qqi_qtype)));
 
                /* kick off reintegration thread if not running already, if
                 * it's just local cancel (for stack clean up or eviction),