From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75B7FC7EE2F for ; Sun, 21 May 2023 23:46:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbjEUXqf (ORCPT ); Sun, 21 May 2023 19:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjEUXqe (ORCPT ); Sun, 21 May 2023 19:46:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEEC1CD; Sun, 21 May 2023 16:46:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5BC3761090; Sun, 21 May 2023 23:46:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27EE9C433EF; Sun, 21 May 2023 23:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684712792; bh=+3vgUoVh3E2C8WDPRGjzO+A3o+qnpoprdCEFxdJkTLI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BIn76l0KCnY6smusBdh+vTTvqCJeSHoDSZWVwVokpqk5tbVTiA8juu+BfUQhrzAMs znwe1JVC3xj96/ulcXd+sUKy9Doh1RQAoAsdpMaUteZ3WJeS5HvhuArO2b5VpXBnVk fc0Mf0My5pVW24z8zqjHqnt/jYvbsneDzyl+GHbIA5vF+qqO++QVv/aUQCl0xFd+7k UsQjhZZzY0WmAk5wmoSSXHrSWbULgAB3giSFZE6ozuC71FlePdzn2gYPlair4pOqNG dd3GECOXwZC8uOPKEWKgOBI2PYI6ohzoB4ZbzAXkgTHZK6Y26798PxrGET5g5QDjTe PIYzIF4neBHIg== Message-ID: Date: Mon, 22 May 2023 08:46:29 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 04/13] filemap: add a kiocb_write_and_wait helper Content-Language: en-US To: Christoph Hellwig , Matthew Wilcox Cc: Jens Axboe , Xiubo Li , Ilya Dryomov , Alexander Viro , Christian Brauner , Theodore Ts'o , Jaegeuk Kim , Chao Yu , Miklos Szeredi , Andreas Gruenbacher , "Darrick J. Wong" , Trond Myklebust , Anna Schumaker , Andrew Morton , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, "open list:F2FS FILE SYSTEM" , cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-5-hch@lst.de> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230519093521.133226-5-hch@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 5/19/23 18:35, Christoph Hellwig wrote: > Factor out a helper that does filemap_write_and_wait_range for a the for a the -> for the > range covered by a read kiocb, or returns -EAGAIN if the kiocb > is marked as nowait and there would be pages to write. > > Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research