Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2250162rwd; Sun, 21 May 2023 16:56:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6W0WLn2NX2Z32+Yws8E12TYE2m/XM1bhnjb886ffglPyIRPijW3VWLNrrJe6cKGgqigDoY X-Received: by 2002:a05:6a00:890:b0:648:1311:fbc4 with SMTP id q16-20020a056a00089000b006481311fbc4mr13809909pfj.33.1684713416526; Sun, 21 May 2023 16:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684713416; cv=none; d=google.com; s=arc-20160816; b=HGibVhrqt5GkYXCS72LxvKL0/TQVYNEGd1FS35ABxzYXnJG0YIrkJzQspLUwGUzWxO 9P+ZYzqp9UNNaL0gHy2PWqZ3dzgdLbV7OhJ/NMFrC+Eb+PrahPxApNVW6PqsUoOkBVrH NUxiR6xDhWx8H7Y4Zhnr/Kpf+vwO+J7q7zVCBm0cgLNr3zeFA8LphBYfX5mkVDeuzcFs KdpNEmkKmXn2gFPRcHUE2Vo625Po2kPrqH5Uy8bMDS1o9bFmEIwjxq8aMymog0qKKQYL kQ8XIwu5x7KBvEC/Y/DQgsJSo51jwdLIP9vsE5h3XXPiX8O+gqSTZvsysAZJsVO2QcyF Z7DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=svR4CGbLoubugTN02ryln1ioX3ZuUS3kSS0+XT+/Kao=; b=WczmPWWNuqM11WGarVUzywl84+zn/DN0GeJcZjTlF9OClLVKootE/BzJY8klSkrBwh VztajDj1iyfz3SHpFG48EjVvDPR4cjeWNJgrWluipCVAdLwXHWymKi+rPE0vlFNK7BtV u2oW5xEUxUddkqbKuhNHtsDDvf3ZpjYyC2HIjY13UH7v+/ArRz+XNzUc/HiB7xvQ/Epg pGg9DZ9eZKNDQ5BDDvSRaAXdMN2v8xLNcck21ue1nU6PJ5/MShEdrvlRNP02IQQD+oOK HgRh1dOiCAnIqjPeGbunvtRzp+I1UNgs/Czc8B+7cdbq5nybXfRdfa6cIigiGCoU6S4U B9QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BIn76l0K; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020aa79506000000b006430bec8238si3701561pfp.328.2023.05.21.16.56.43; Sun, 21 May 2023 16:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BIn76l0K; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjEUXqf (ORCPT + 99 others); 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 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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