Whamcloud - gitweb
LU-6401 headers: Create a header for obdo related functions
[fs/lustre-release.git] / lustre / osp / osp_object.c
index a71af4e..96e3135 100644 (file)
 
 #define DEBUG_SUBSYSTEM S_MDS
 
+#include <lustre_obdo.h>
 #include <lustre_swab.h>
+
 #include "osp_internal.h"
 
 static inline __u32 osp_dev2node(struct osp_device *osp)
@@ -1039,7 +1041,6 @@ unlock:
                GOTO(out, rc = -ERANGE);
 
        memcpy(buf->lb_buf, rbuf->lb_buf, rbuf->lb_len);
-       rc = rbuf->lb_len;
        if (obj->opo_ooa == NULL || osp->opd_connect_mdt)
                GOTO(out, rc);