From 8167706882a4c845d84b2b724984a60cf5eb72f0 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 2 Sep 2005 12:46:00 +0000 Subject: [PATCH] - few fixes in comments (typos) - 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 | 2 +- lustre/llite/rw26.c | 2 +- lustre/obdclass/obd_config.c | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lustre/cmobd/cm_obd.c b/lustre/cmobd/cm_obd.c index 2587867..417ef9e 100644 --- a/lustre/cmobd/cm_obd.c +++ b/lustre/cmobd/cm_obd.c @@ -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; diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index eb9162f..ea8ae29 100644 --- a/lustre/llite/rw26.c +++ b/lustre/llite/rw26.c @@ -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 diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 282f6c0..de792fa 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -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"); -- 1.8.3.1