Whamcloud - gitweb
b=18631
[fs/lustre-release.git] / lustre / obdfilter / filter_lvb.c
index 1f627b2..c66055e 100644 (file)
@@ -121,8 +121,7 @@ out_dentry:
  *   If 'increase_only' is true, don't allow values to move backwards.
  */
 static int filter_lvbo_update(struct ldlm_resource *res,
-                              struct ptlrpc_request *r,
-                              int buf_idx, int increase_only)
+                              struct ptlrpc_request *r, int increase_only)
 {
         int rc = 0;
         struct ost_lvb *lvb;
@@ -144,8 +143,7 @@ static int filter_lvbo_update(struct ldlm_resource *res,
                 struct ost_lvb *new;
 
                 /* XXX update always from reply buffer */
-                new = lustre_swab_repbuf(r, buf_idx, sizeof(*new),
-                                         lustre_swab_ost_lvb);
+                new = req_capsule_server_get(&r->rq_pill, &RMF_DLM_LVB);
 
                 if (new == NULL) {
                         CERROR("lustre_swab_buf failed\n");