Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp538008imm; Fri, 13 Jul 2018 01:50:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfI27X1wF56Q/+QECXPWoWOuf7kMBxAdkWsjs/LxUTsHzfqugxlLLYM1Of+2XiwKiVMV62A X-Received: by 2002:a65:5641:: with SMTP id m1-v6mr5388131pgs.246.1531471829556; Fri, 13 Jul 2018 01:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531471829; cv=none; d=google.com; s=arc-20160816; b=m7VowoBbg/oFngZXNkvahK60gnyGsqS+J2MZddUm/mdjZEIhfc5BPaItG6M+GbvgSj hbHDBpmJyKwrTUGaQtc7d42Qs4+UF3aBvMzapixGIxoK/MApnyPHAdRXpcsL13O8Wz6s jqaIurjpoQm0PjQvW9EBlmvh6dcatMJE/K1J+ByyrgQPSpZhHWBbH5+I40sbyXAY5vMC sW0A50Gjj8SY4BTxUOay4QJ6CfuUqQ+levUD6dG7FufPKG1NosYffil609zmZcFYgl/C DwuHTGoF/KS0gt4kDKKeTa8rYWgLrTndkbHMv12+H8aePS/9xUBhPhDr4NDhZBwdCmsb jPmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KN9SV33FLnLJMA92S3MlUtZGomr1Mwe/OGsIBK+qvvw=; b=vHWRWTXfr+PC6C56wWOtn25EuuayOG7NDzQgt60/DaW0ZR9gyVAlAv3mfu3PrlcH8D rsn+mTQhDx3qvnqdPc17iKkk0bqHqxjIHUoSQJbjFpK0mqt16yAaIlb8okR4vuiacLsB o8eQp7mh3ZUIeXxw81tYVlCuMQbLW9yGcXR4OdgHS/AiE3RnycZIh50iK9vLISVPDi2i +MqHAaOp6L3a22r/WrbL9sGlZGy7PkXiP0t4jbceJtYUIXAatIk6+eZmay/ILXLoD8rH A1VHFEtiVoEasqO8DaRZfh5zkfnX0YYxIOoC1NyMGvfPKqHaJ/cVQR3MPsl0f3XZQkPl nY6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=ayh6ECaZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21-v6si24150702pfk.213.2018.07.13.01.50.14; Fri, 13 Jul 2018 01:50:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=ayh6ECaZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729733AbeGMJDC (ORCPT + 99 others); Fri, 13 Jul 2018 05:03:02 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:42013 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729680AbeGMJDB (ORCPT ); Fri, 13 Jul 2018 05:03:01 -0400 Received: by mail-pl0-f68.google.com with SMTP id f4-v6so7725640plb.9 for ; Fri, 13 Jul 2018 01:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KN9SV33FLnLJMA92S3MlUtZGomr1Mwe/OGsIBK+qvvw=; b=ayh6ECaZD7T1Cs9NjZRarJSfbIqpJKx6fgbjSxVnnGqZar5tJVNTVhmyUlmjZgW1eo qF7NfExZHvzGvSTex782yYVRyeeJf6WCzxqSlJe8nJRreJsAecVPb4GvflyKYNtm22Ji N+OryVfVx6HwZ9ofQQ4aqnh0fqMgEDcDsO5q/fRF/Lt7nFUvYlsHd6bO1ssaJJwOJV1Z kV7za70n5Mg1h7S0yCnZWFDSD9yN/gyGwUQtJ4MhgETv1wD4Q2C3HAfe6woY7GX0RXQk GNLk62EhvYQIZJp7lV0eygRkX24DczSxd5pOxWwuU7UGOWoNylV0Ylnq92RF3qYJzH6M nUCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KN9SV33FLnLJMA92S3MlUtZGomr1Mwe/OGsIBK+qvvw=; b=USYYK1hPOGNPdcI21jhL5UlH/uAvZoM5aCfCHOfnnyE7dzYnmM4oYqwuExGH5TfCSA rOpRSFqqQZ3PgRsQHQYY2cYovyVx5sXOBl6Cn5REkGSRBIJ8jZ3z1BBkKurhwluSm+Un GdbhNoi9B6JPS/6r+NlT16FlRNH5UTH6CUliVWikuEtKsPSRnqL7AgHI+AX58+ktEYQZ lcFdsnHRkUG37BrZ3qk9/mXrwiE8UEF/GYFug5/sSLjk22r0hPG0eNOLsMQKWRGonaWg /ncqjyKfAcGwzvdDlCxlA0bBYuFMjthsa3rjw3j4d9Ux3TCST/Ahl69b1nnqxcOoFuWK G7vg== X-Gm-Message-State: AOUpUlHCI9YfbWauY1YKJwmzaWMve6wPH62cGCs/bdn1EYSUgKtN17Pi jBzhYGljNkd8qM3dP1xSEOeqOw== X-Received: by 2002:a17:902:8207:: with SMTP id x7-v6mr5419201pln.57.1531471761147; Fri, 13 Jul 2018 01:49:21 -0700 (PDT) Received: from skyninja.hgst.com (rap-us.hgst.com. [199.255.44.250]) by smtp.gmail.com with ESMTPSA id d18-v6sm569357pgo.74.2018.07.13.01.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 01:49:19 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, bart.vanassche@wdc.com, hans.holmberg@cnexlabs.com, javier@cnexlabs.com, hlitz@ucsc.edu, igor.j.konopko@intel.com, marcin.dziegielewski@intel.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 03/10] lightnvm: pblk: enable line minor version detection Date: Fri, 13 Jul 2018 10:48:38 +0200 Message-Id: <20180713084845.19511-4-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180713084845.19511-1-mb@lightnvm.io> References: <20180713084845.19511-1-mb@lightnvm.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When recovering a line, an extra check was added when debugging was active, such that minor version where also checked. Unfortunately, this used the ifdef NVM_DEBUG, which is not correct. Instead use the proper DEBUG def, and now that it compiles, also fix the variable. Signed-off-by: Matias Bjørling Fixes: d0ab0b1ab991f ("lightnvm: pblk: check data lines version on recovery") Reviewed-by: Javier González --- drivers/lightnvm/pblk-recovery.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index 3a5069183859..d83466b3821b 100644 --- a/drivers/lightnvm/pblk-recovery.c +++ b/drivers/lightnvm/pblk-recovery.c @@ -742,9 +742,10 @@ static int pblk_recov_check_line_version(struct pblk *pblk, return 1; } -#ifdef NVM_DEBUG +#ifdef CONFIG_NVM_PBLK_DEBUG if (header->version_minor > EMETA_VERSION_MINOR) - pr_info("pblk: newer line minor version found: %d\n", line_v); + pr_info("pblk: newer line minor version found: %d\n", + header->version_minor); #endif return 0; -- 2.11.0