Whamcloud - gitweb
- few fixes in comments (typos)
authoryury <yury>
Fri, 2 Sep 2005 12:46:00 +0000 (12:46 +0000)
committeryury <yury>
Fri, 2 Sep 2005 12:46:00 +0000 (12:46 +0000)
- removed wrong stuff in class_add_conn(). Apparently it is result of wrong merge when newcfg stuff was landed. Issues related to it were observed in #48.

lustre/cmobd/cm_obd.c
lustre/llite/rw26.c
lustre/obdclass/obd_config.c

index 2587867..417ef9e 100644 (file)
@@ -278,7 +278,7 @@ static int cmobd_iocontrol(unsigned int cmd, struct obd_export *exp,
         case OBD_IOC_CMOBD_SYNC:
                 /* here would be nice to make sure somehow that all data is in
                  * cache and there are no outstanding requests, as otherwise
-                 * cahce is not coherent. But how to check that from CMOBD? I do
+                 * cache is not coherent. But how to check that from CMOBD? I do
                  * not know. --umka */
                 rc = cmobd_reintegrate(obd);
                 break;
index eb9162f..ea8ae29 100644 (file)
@@ -84,7 +84,7 @@ static int ll_writepages(struct address_space *mapping,
         struct timeval tstart, now;
         do_gettimeofday(&tstart);
         rc =  generic_writepages(mapping, wbc);
-        /* this syncronization (even being implemented via Writeback)
+        /* this synchronization (even being implemented via Writeback)
          * makes recovery much more sad, because iget() can get stuck
          * on I_LOCK the kernel helds over ->writepages() -bzzz */
         if (rc == 0 && wbc->sync_mode == WB_SYNC_ALL
index 282f6c0..de792fa 100644 (file)
@@ -355,10 +355,6 @@ int class_add_conn(struct obd_device *obd, struct lustre_cfg *lcfg)
                 RETURN(-EINVAL);
         }
 
-        if (LUSTRE_CFG_BUFLEN(lcfg, 2) != sizeof(int)) {
-                CERROR("invalid priority\n");
-                RETURN(-EINVAL);
-        }
         if (strcmp(obd->obd_type->typ_name, OBD_MDC_DEVICENAME) &&
             strcmp(obd->obd_type->typ_name, OBD_OSC_DEVICENAME)) {
                 CERROR("can't add connection on non-client dev\n");