Whamcloud - gitweb
Increase the number of request buffers to 4096 from 1024 for a 4GB machine
[fs/lustre-release.git] / lustre / obdclass / llog_cat.c
index d09cad1..b0e82fe 100644 (file)
@@ -239,7 +239,7 @@ static struct llog_handle *llog_cat_current_log(struct llog_handle *cathandle,
 
         CDEBUG(D_INODE, "creating new log\n");
         loghandle = llog_cat_new_log(cathandle);
-        if (loghandle)
+        if (!IS_ERR(loghandle))
                 down_write(&loghandle->lgh_lock);
         up_write(&cathandle->lgh_lock);
         RETURN(loghandle);