X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_cat.c;h=b0e82fe6d808f3af5f7909a2a0813c2e85c0e364;hb=2d8d11cfad482b0f5cde34359bec89ed2547f5be;hp=d09cad19d58804b8753ea3ecba2ff3783f314fd3;hpb=530023a210b7c984d24acc8199a665140ea72929;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index d09cad1..b0e82fe 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -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);