Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4104975rwd; Tue, 30 May 2023 00:03:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7J8Wvq3cvcLNGhCbE2kU4IrPYXZdtSE9sI6Kp5rpZ2QYvYzjSHnGA8iuAN1CxyUjumJGFQ X-Received: by 2002:a05:6a20:244f:b0:10c:37ed:3e94 with SMTP id t15-20020a056a20244f00b0010c37ed3e94mr11483861pzc.28.1685430190342; Tue, 30 May 2023 00:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685430190; cv=none; d=google.com; s=arc-20160816; b=g+CuFbcLG9c4QN4JJ9mCefD/U6l8tkuhd59X8Nd+QsFyY1s8UijsgQPb2+QpPb6Gdn fxXfFdHHB2+cnDxmBnk/7xidoGMyK/nyeyFrw590v20z0LfTdtyexD9QEJlSvVAyHtB2 g7Mb/Pk1twH0Hhe+oKa8i+pzswPbS9KG4/l4CqhJgSYfpMqiGhAAJVSeSiduCJ9xE+il sn+n6yqM9Nuzwz5TLrJuqKovYOUKw9nFas4dCL0VpwNU5PtirbVRFVHHl+wzvlcWyck+ jMfFBebbzdOkhGGuHRE50EODm6IZBL9D5msWOWC1WxhX0wcOITjpvpymcrfUaYI7paxJ MxZw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=Q0PsOe2Gxw2SLcQPMi/D2wOLKa5xfHhjwYepRb/EUp8=; b=zCF7hvUMoEuG0dNcPp07QjEBOJxIi3yhbE9Mih/ywTrtWueO2GCsw+sLSszHMOY2wu hWyPloB+aQD9Jt6/fb87UWvD54yoMnpydhvA/VY3B+Sf3DHATRTxSaP6wi1SLsgK32gp AN3HrIgbtF1Nwzz3qVo1XtyhVi3w+JL2sn8S+gmjWqAkviTBvtoCQxJ9/rgNN6zfZgNX X5DM5j30Aw/GGXhhXF6VJRA4LwsHMiK93jyZi7qNU3w+ZkYqeCeas+2xC+nUVJBGB6r2 pJLelT/qt/t+8ndAX3+ikfQLauxat9XqQwx033s++IrkvHbJzW8dFaj0dzBByTsuDYsk Zr5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=1y7XhZ1p; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a637b0d000000b004fc39adf481si10793833pgc.381.2023.05.30.00.02.57; Tue, 30 May 2023 00:03:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=1y7XhZ1p; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230315AbjE3HAB (ORCPT + 99 others); Tue, 30 May 2023 03:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjE3G76 (ORCPT ); Tue, 30 May 2023 02:59:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB6E6118; Mon, 29 May 2023 23:59:55 -0700 (PDT) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5C58E1FD68; Tue, 30 May 2023 06:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1685429994; h=from:from:reply-to: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; bh=Q0PsOe2Gxw2SLcQPMi/D2wOLKa5xfHhjwYepRb/EUp8=; b=1y7XhZ1pKDsXxc34xAkVmti0Uu8u+GarKhCqTI3+gC1JIYWEfNJSFMUlc1RQJFxWZav4HJ LqxlR19VxmNSCu+WiofkXE7LoTu4AyusZJMEKmOLfaN72kG69+tUEQTCedTcYbla1Za8mH uBDA4rgqXTq2wcOUv8uwc0BdgSS8tn8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1685429994; h=from:from:reply-to: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; bh=Q0PsOe2Gxw2SLcQPMi/D2wOLKa5xfHhjwYepRb/EUp8=; b=3SnuMLEx3ehE/qE3OCEn3UikVazz5Bio8UW9I0DhSkFKCd+DBRyzJnXcP+oKYt2ju+fd5J Z9FGzjvv5M+MgMAQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id D32491341B; Tue, 30 May 2023 06:59:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id VJgPMumedWTgcgAAGKfGzw (envelope-from ); Tue, 30 May 2023 06:59:53 +0000 Message-ID: Date: Tue, 30 May 2023 08:59:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 06/11] filemap: add a kiocb_invalidate_post_direct_write 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 , Damien Le Moal , Andrew Morton , linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org References: <20230524063810.1595778-1-hch@lst.de> <20230524063810.1595778-7-hch@lst.de> From: Hannes Reinecke In-Reply-To: <20230524063810.1595778-7-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,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,URIBL_BLOCKED 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-nfs@vger.kernel.org On 5/24/23 08:38, Christoph Hellwig wrote: > Add a helper to invalidate page cache after a dio write. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Damien Le Moal > Acked-by: Darrick J. Wong > --- > fs/direct-io.c | 10 ++-------- > fs/iomap/direct-io.c | 12 ++---------- > include/linux/fs.h | 5 ----- > include/linux/pagemap.h | 1 + > mm/filemap.c | 37 ++++++++++++++++++++----------------- > 5 files changed, 25 insertions(+), 40 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman