Whamcloud - gitweb
b=16461
[fs/lustre-release.git] / lustre / fid / fid_handler.c
index 8310c4f..774aacc 100644 (file)
@@ -16,8 +16,8 @@
  * in the LICENSE file that accompanied this code).
  *
  * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see [sun.com URL with a
- * copy of GPLv2].
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
  *
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  * CA 95054 USA or visit www.sun.com if you need additional information or
@@ -302,25 +302,27 @@ static int seq_server_handle(struct lu_site *site,
                              struct lu_range *out)
 {
         int rc;
+        struct md_site *mite;
         ENTRY;
 
+        mite = lu_site2md(site);
         switch (opc) {
         case SEQ_ALLOC_META:
-                if (!site->ls_server_seq) {
+                if (!mite->ms_server_seq) {
                         CERROR("Sequence server is not "
                                "initialized\n");
                         RETURN(-EINVAL);
                 }
-                rc = seq_server_alloc_meta(site->ls_server_seq,
+                rc = seq_server_alloc_meta(mite->ms_server_seq,
                                            in, out, env);
                 break;
         case SEQ_ALLOC_SUPER:
-                if (!site->ls_control_seq) {
+                if (!mite->ms_control_seq) {
                         CERROR("Sequence controller is not "
                                "initialized\n");
                         RETURN(-EINVAL);
                 }
-                rc = seq_server_alloc_super(site->ls_control_seq,
+                rc = seq_server_alloc_super(mite->ms_control_seq,
                                             in, out, env);
                 break;
         default:
@@ -483,7 +485,7 @@ int seq_server_init(struct lu_server_seq *seq,
 
         seq->lss_cli = NULL;
         seq->lss_type = type;
-        range_zero(&seq->lss_space);
+        range_init(&seq->lss_space);
         sema_init(&seq->lss_sem, 1);
 
         seq->lss_width = is_srv ?