Message ID | b7dc01dc0523e3af5a3c50d0ac1f98cead699305.1685461490.git.johannes.thumshirn@wdc.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DE86C7EE2F for <dm-devel@archiver.kernel.org>; Tue, 30 May 2023 15:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685461893; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jwDjA5Pq75EdrNHli4t4OrVDJ2qyxg578GWIt0I7Azw=; b=D7oFI0n10TVYxSbL0FY04zvizMiYecbo07LhI1hMawZvUwyt0sDgh8Hj9tECmwCc5j631U PoOTvTxmDLCpaWaNMK8D0WxQYxQFS9sK9okOgcbSbG56hD0Nb5xBC95T/eAH7R1lKycH9F wAruvfBqSMR9IHBMdH43v4uUiF4fJCw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-376-8X2eEN5iN0WMufhFQk5AiA-1; Tue, 30 May 2023 11:51:31 -0400 X-MC-Unique: 8X2eEN5iN0WMufhFQk5AiA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A41328030CF; Tue, 30 May 2023 15:51:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 93A37140E956; Tue, 30 May 2023 15:51:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id AB89119451CA; Tue, 30 May 2023 15:50:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 37C0019465A0 for <dm-devel@listman.corp.redhat.com>; Tue, 30 May 2023 15:50:09 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 19970420A8; Tue, 30 May 2023 15:50:09 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11EEA17103 for <dm-devel@redhat.com>; Tue, 30 May 2023 15:50:09 +0000 (UTC) Received: from us-smtp-inbound-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7E328039A7 for <dm-devel@redhat.com>; Tue, 30 May 2023 15:50:08 +0000 (UTC) Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-637-hPxXAT6yOQqWF-Q0VM1UTA-1; Tue, 30 May 2023 11:50:04 -0400 X-MC-Unique: hPxXAT6yOQqWF-Q0VM1UTA-1 X-IronPort-AV: E=Sophos;i="6.00,204,1681142400"; d="scan'208";a="231986013" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 30 May 2023 23:50:03 +0800 IronPort-SDR: lViGYHuDWVLv6UKo06H1EhfEEFhORt2bsfoOuXMe3iaFRtm2VGFVf4WOz72F7A3mIvW+HKbklB ZfX74V/XPnEHxx+//9SDT0TOj/Frav0wGipiu4emwIczi2gkBQh4xaCOLa4qHY+l6N/lxWz+aY 1FNNbzKTmemwcKXEMUV+BaD1bDo2PZZKxbQdwcRs9qTkROo8kKm991vSSGcRX5TzGKqvxM07ka q48z6b4IXZXrfQbdjIVI7UqaXlb6OJ4O/QyOmHQoARaDjzM+k8VKfo2m6ixmQxR26kRCn65K1W jbk= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 May 2023 08:04:56 -0700 IronPort-SDR: uoO7OAb8Rbai8cKgJymQK7W4XKI+NlAnG6HDCi8QqM7mtI6E9SBztbMSPVAHHXkyD5wS0TiagB zwsZz4Lc/J2aZzF+Mlm2SSoQODj2TQmcJ97GwYMdyo0esUPwJRVyQz9paaoxA4nohmqRdWmmxO S250ZL7bmPo0YQ7S943KQRNaXs/Lw2JPLCCx68yUQpjAN3ERvara5+yzICrxbaCvHvUKuOeFn5 WQ2BgTAjgwj+oUkxmFhmgnUej8e/Wo6551HAGEv9hdjrJsbcc4zdEck0heYyMZJ0oinBH2yZjQ tl0= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 30 May 2023 08:50:00 -0700 From: Johannes Thumshirn <johannes.thumshirn@wdc.com> To: Jens Axboe <axboe@kernel.dk> Date: Tue, 30 May 2023 08:49:14 -0700 Message-Id: <b7dc01dc0523e3af5a3c50d0ac1f98cead699305.1685461490.git.johannes.thumshirn@wdc.com> In-Reply-To: <cover.1685461490.git.johannes.thumshirn@wdc.com> References: <cover.1685461490.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Subject: [dm-devel] [PATCH v6 11/20] zram: use __bio_add_page for adding single page to bio X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://listman.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <http://listman.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://listman.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> Cc: Dave Kleikamp <shaggy@kernel.org>, jfs-discussion@lists.sourceforge.net, Song Liu <song@kernel.org>, dm-devel@redhat.com, Christoph Hellwig <hch@lst.de>, Andreas Gruenbacher <agruenba@redhat.com>, Damien Le Moal <damien.lemoal@opensource.wdc.com>, Matthew Wilcox <willy@infradead.org>, cluster-devel@redhat.com, Chaitanya Kulkarni <kch@nvidia.com>, Mike Snitzer <snitzer@kernel.org>, Ming Lei <ming.lei@redhat.com>, linux-raid@vger.kernel.org, Bob Peterson <rpeterso@redhat.com>, Mikulas Patocka <mpatocka@redhat.com>, linux-block@vger.kernel.org, Damien Le Moal <damien.lemoal@wdc.com>, gouhao@uniontech.com, linux-mm@kvack.org, Johannes Thumshirn <johannes.thumshirn@wdc.com>, Sergey Senozhatsky <senozhatsky@chromium.org>, linux-fsdevel@vger.kernel.org Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" <dm-devel-bounces@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: wdc.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
bio: check return values of bio_add_page
|
expand
|
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index f6d90f1ba5cf..b86691d2133e 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -700,7 +700,7 @@ static ssize_t writeback_store(struct device *dev, bio_init(&bio, zram->bdev, &bio_vec, 1, REQ_OP_WRITE | REQ_SYNC); bio.bi_iter.bi_sector = blk_idx * (PAGE_SIZE >> 9); - bio_add_page(&bio, page, PAGE_SIZE, 0); + __bio_add_page(&bio, page, PAGE_SIZE, 0); /* * XXX: A single page IO would be inefficient for write