Message ID | 1482854706-14128-5-git-send-email-tom.leiming@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9831262AB4 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 2 Jan 2017 09:33:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 962A5205AB for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 2 Jan 2017 09:33:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B16125D9E; Mon, 2 Jan 2017 09:33:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DD9C205AB for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 2 Jan 2017 09:33:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v029WW1b023254; Mon, 2 Jan 2017 04:32:32 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id uBRG5t54011971 for <dm-devel@listman.util.phx.redhat.com>; Tue, 27 Dec 2016 11:05:55 -0500 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uBRG5sk3031298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Dec 2016 11:05:54 -0500 Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4F95A8EB3F; Tue, 27 Dec 2016 16:05:54 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id g1so12809950pgn.0; Tue, 27 Dec 2016 08:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=61wWQYO1Z7Iw0Uzq10Aaws0+ofWAFQV19ovUUJI5Gk4=; b=JH6vynaQ1H4p0fJ1EdxlSDmiVs06zW56I3xR7iHNgGpLmiK5Mdv8oyIcAlnjgHS8WA b6XW7hR6lrHGXHhKyIcBJfmDrvpbMDdUz2W9SVOkyDddAa+3PxdIlCIPV+T9wkwvhKO5 2GDxk5N4DNoZ51KYR2p17kygepXQRn7w8KjY46lXknE5HM5Pxh6ocJGw/9PE08n440Dg YuWCX0ROxNm2ruOz4rlbi1+ks1YrIUZ74iJccTtqfzz7TdL0s/HbR87Q33QpcAFQAFeP 4BTq22NG84KmXNfAtUhU36W0h3p/H9SNBBUVHqh/TTu0RmQkBP/9nyWpAVhOlOfUtzzs y2HQ== 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; bh=61wWQYO1Z7Iw0Uzq10Aaws0+ofWAFQV19ovUUJI5Gk4=; b=MgvGFWZzZoFz/hEs+tAhUp31LXABpVsypFE664NbnQu8ybf963Lc6crM1gaFmdJ/QP Y7uqia4zJIpycPA4f8G09MrshJILw1UP2Hv8f5Is5T9bkHFTnvLQllXUMl9ul7/xsLOO KM69HaKGbp7tlqRKzQQdLStqwcqcv1cdAmHKwx8TDOdjZbVNI5r80KR3STaBY4bIKR+V mUAxwW8cqQJXhKINIw35EH6/03Sm7fZbLQO6aqRovymLm0jdxd73R7SdYI1BzsEV1ACA gDwKNg+/gR98gqkWz+PYP19Xrp2mU7wDRpNax/FPcR/lFYVMU9c0guaDWd5Wugq+3F6/ 6DNw== X-Gm-Message-State: AIkVDXJK48sh/c2DN5Db09jLpssoXnSvQHqduGjQxd0JWderb/58uIziEox0bQumfTXg3w== X-Received: by 10.98.192.208 with SMTP id g77mr19331458pfk.118.1482854753031; Tue, 27 Dec 2016 08:05:53 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id p1sm91391563pgc.29.2016.12.27.08.05.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 08:05:51 -0800 (PST) From: Ming Lei <tom.leiming@gmail.com> To: Jens Axboe <axboe@fb.com>, linux-kernel@vger.kernel.org Date: Wed, 28 Dec 2016 00:04:45 +0800 Message-Id: <1482854706-14128-5-git-send-email-tom.leiming@gmail.com> In-Reply-To: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> References: <1482854706-14128-1-git-send-email-tom.leiming@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 27 Dec 2016 16:05:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 27 Dec 2016 16:05:54 +0000 (UTC) for IP:'74.125.83.67' DOMAIN:'mail-pg0-f67.google.com' HELO:'mail-pg0-f67.google.com' FROM:'tom.leiming@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.17 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 74.125.83.67 mail-pg0-f67.google.com 74.125.83.67 mail-pg0-f67.google.com <tom.leiming@gmail.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 02 Jan 2017 04:31:56 -0500 Cc: Christoph Hellwig <hch@infradead.org>, Mike Snitzer <snitzer@redhat.com>, Ming Lei <tom.leiming@gmail.com>, linux-block@vger.kernel.org, "maintainer:DEVICE-MAPPER LVM, Shaohua Li <shli@kernel.org>, linux-raid@vger.kernel.org open list:SOFTWARE RAID Multiple DisksSUPPORT" <dm-devel@redhat.com>, Alasdair Kergon <agk@redhat.com> Subject: [dm-devel] [PATCH v1 36/54] dm-crypt: don't clear bvec->bv_page in crypt_free_buffer_pages() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 7c6c57216bf2..593cdf88bf5f 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -1042,7 +1042,6 @@ static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) bio_for_each_segment_all(bv, clone, i) { BUG_ON(!bv->bv_page); mempool_free(bv->bv_page, cc->page_pool); - bv->bv_page = NULL; } }
The bio is always freed after running crypt_free_buffer_pages(), so it isn't necessary to clear the bv->bv_page. Signed-off-by: Ming Lei <tom.leiming@gmail.com> --- drivers/md/dm-crypt.c | 1 - 1 file changed, 1 deletion(-)