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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 BAED0C7EE23 for ; Sun, 21 May 2023 23:51:37 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1q0spr-0007PV-Lm; Sun, 21 May 2023 23:51:36 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q0spk-0007PO-P5 for linux-f2fs-devel@lists.sourceforge.net; Sun, 21 May 2023 23:51:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zq7jueMb+og/+QLU1N2Twg+x/eBvLfShrVt5BCDYO9s=; b=iaWGeWLOSZMIOdJtpUcQot3co0 sZzQSMGPIUUi81EXg9y7zGTOt1VUHYICoGCzDPtQvouI+OqjTBd0VfzaB4Gu1uUT+5ErQKCR36+XX 5aliiMaE6DZ/5UkxMn6Vl72lMyjpcnKAtsKoSLjPYzziJrJxESM3wf5kYcku5u00KX08=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zq7jueMb+og/+QLU1N2Twg+x/eBvLfShrVt5BCDYO9s=; b=RcB00BgdzbMQttLjDyv/+Bj2BI X/EFKdI09rOdAAphlLjD9Ham2FanimrDVa1JVlAidhkG6ttvTF2z3Wt6A2Ss+116xcMvxrwjqWcT/ IpVbG5xTZLSmBXLhgFZXNMxoUTWyhvABbSXtc22JTEpFHvEcGGF5hF45PJTborHnr4Wo=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1q0spk-00FHfj-Jk for linux-f2fs-devel@lists.sourceforge.net; Sun, 21 May 2023 23:51:29 +0000 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 31F9060F36; Sun, 21 May 2023 23:51:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AA5CC433EF; Sun, 21 May 2023 23:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684713082; bh=JM6EWN6Vr8l/+vfMGEdDax1iehXzHzlib3UykqPWjDY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=I3n4f+Hx+d/WbG91pczWPX1rPbl9NSSVWcZeLoP+225RgrU5EtFZOKgl6tAyY4DVo aPfkrcA8CiQWpyBNZJhoQBGEKYp4qyJQA293j2LDG669aqyRqyFMpO5Ni1n8ppuk8L qP4BKn8FC2G5Ua5wwvgn1/CyNxLIxcI77BUnRg+VFjzhIFGjO9l8tslODaNCtGZ9cd y0OqRTQKWUgxwxjjIHSyR/3Vf6balNbjHGP+Q5ha+yM3o4ds9Rq+7fjzhwsL9k6Xef LAF/r3RF0hhQHKY4QzSnfOdpLZ2JRFc8MEBKawObeVUv4MYsci5zhB+3Muoo0cD9We 8lqdVgwXyYPNA== Message-ID: Date: Mon, 22 May 2023 08:51:19 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: Christoph Hellwig , Matthew Wilcox References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-6-hch@lst.de> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230519093521.133226-6-hch@lst.de> X-Headers-End: 1q0spk-00FHfj-Jk Subject: Re: [f2fs-dev] [PATCH 05/13] filemap: add a kiocb_invalidate_pages helper X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Darrick J. Wong" , linux-mm@kvack.org, Andreas Gruenbacher , Miklos Szeredi , cluster-devel@redhat.com, Ilya Dryomov , linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-block@vger.kernel.org, Alexander Viro , Jaegeuk Kim , ceph-devel@vger.kernel.org, Xiubo Li , Trond Myklebust , Jens Axboe , Christian Brauner , Theodore Ts'o , "open list:F2FS FILE SYSTEM" , linux-xfs@vger.kernel.org, Anna Schumaker , linux-fsdevel@vger.kernel.org, Andrew Morton Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 5/19/23 18:35, Christoph Hellwig wrote: > Factor out a helper that calls filemap_write_and_wait_range and > invalidate_inode_pages2_rangefor a the range covered by a write kiocb or invalidate_inode_pages2_rangefor a the range -> invalidate_inode_pages2_range for the range > returns -EAGAIN if the kiocb is marked as nowait and there would be pages > to write or invalidate. > > Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel