From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8D832701B4 for ; Tue, 6 May 2025 09:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746524225; cv=none; b=a+h658RC/1A3o+TCSAWGIm/Qg5yP9LamAAKa3mcuwI3sUXVzl42nk/ZdwyK6R+23hNqd8ZoU1nqfwuRqmk14YeaF4oHMXl5E8pNsHKHWCfgSO4BNHIr1IKYZ0QlNHXltlxEvXbDJvgmId943P4YTxVYnvmFQNrY/MqhWbX7/kow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746524225; c=relaxed/simple; bh=qOiexQ/2jI3FvkKxeohCrO+0mQDIzwCnfLrg1HFKBdI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=mn0EcRzDCFFDYsT4dYqm2gaFutcl2yebIK1dkE0q4pFr0w90Xzq0el5g1XWgGyYxqjG0ukTAj2hDiQI/EZacSNUvgOk4EhJSFCb/XXHmEhysIYR6GUGDZ+8cglSJ8MAwHnCgKjIkondyPaRtH7q+h9TyzV737fqVEjQrEdTV8IM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NffFA/7L; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NffFA/7L" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1746524220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UAL94wTpvtO/Lxptme/YwkD4oR3pyZDYuyoU5rE6q7w=; b=NffFA/7LUmxcfqAHQwddZzztl7XA9lypJaXKG1fbahGfSl89YfhPPM11FeeyXrnUp2iUwM ajd6y2pBVEcNhCJXOdkiX3u9lxIsuHL2aIMa8tVF/8+43pARz4UaoPtjfubfFpSP14wZkA 7ChOosw945dy47YrTQ4F+EkDgOzEG64= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-677-3EIRxZwJPc-7FI1rkdaFGQ-1; Tue, 06 May 2025 05:36:57 -0400 X-MC-Unique: 3EIRxZwJPc-7FI1rkdaFGQ-1 X-Mimecast-MFC-AGG-ID: 3EIRxZwJPc-7FI1rkdaFGQ_1746524214 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 11AD218009A4; Tue, 6 May 2025 09:36:54 +0000 (UTC) Received: from [10.22.80.45] (unknown [10.22.80.45]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D07601956096; Tue, 6 May 2025 09:36:45 +0000 (UTC) Date: Tue, 6 May 2025 11:36:39 +0200 (CEST) From: Mikulas Patocka To: Christoph Hellwig cc: Jens Axboe , linux-block@vger.kernel.org, "Md. Haris Iqbal" , Jack Wang , Coly Li , Kent Overstreet , Mike Snitzer , Chris Mason , Josef Bacik , David Sterba , Andreas Gruenbacher , Carlos Maiolino , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , "Rafael J. Wysocki" , Pavel Machek , slava@dubeyko.com, glaubitz@physik.fu-berlin.de, frank.li@vivo.com, linux-bcache@vger.kernel.org, dm-devel@lists.linux.dev, linux-btrfs@vger.kernel.org, gfs2@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-pm@vger.kernel.org, Johannes Thumshirn Subject: Re: [PATCH 13/19] dm-bufio: use bio_add_virt_nofail In-Reply-To: <20250430212159.2865803-14-hch@lst.de> Message-ID: References: <20250430212159.2865803-1-hch@lst.de> <20250430212159.2865803-14-hch@lst.de> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 On Wed, 30 Apr 2025, Christoph Hellwig wrote: > Convert the __bio_add_page(..., virt_to_page(), ...) pattern to the > bio_add_virt_nofail helper implementing it. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Damien Le Moal > Reviewed-by: Johannes Thumshirn Acked-by: Mikulas Patocka > --- > drivers/md/dm-bufio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c > index 9c8ed65cd87e..e82cd5dc83ce 100644 > --- a/drivers/md/dm-bufio.c > +++ b/drivers/md/dm-bufio.c > @@ -1362,7 +1362,7 @@ static void use_bio(struct dm_buffer *b, enum req_op op, sector_t sector, > ptr = (char *)b->data + offset; > len = n_sectors << SECTOR_SHIFT; > > - __bio_add_page(bio, virt_to_page(ptr), len, offset_in_page(ptr)); > + bio_add_virt_nofail(bio, ptr, len); > > submit_bio(bio); > } > -- > 2.47.2 > >