Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8198817rwp; Wed, 19 Jul 2023 06:40:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYeoyJLvINJWUgFqTEsz5eDzjFuPE2eltyj/jccSVh/F4S/sYyM3hFHnKFTiqT755g8Ttv X-Received: by 2002:a05:6a21:32a7:b0:135:110c:c6e1 with SMTP id yt39-20020a056a2132a700b00135110cc6e1mr7535148pzb.7.1689774058555; Wed, 19 Jul 2023 06:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689774058; cv=none; d=google.com; s=arc-20160816; b=bIk0iINfBdm6cnDXeQVoN6t+gwDVB3BSspJ3NKcQPxqUoiqkZnDAGx43z2ljLHX5/H dsUuujN8o2ACYK7Bt3vCwdQjx7scY2YqVHALHeQ8SVyqegHUsrFHZ7k8IXtr1t/Y7Gn4 b3p1yyfOYpgEji1taxQWGmhXTnUSUTYzQJzb/DJiawTY6+b2+msdyzhnC4l1QCNRLRKB Lky4GChkj/UpQz4l7nJkC22XUwwnMCcC8ClpXzOasiudmPC6y9f635XrSaQRZNQIcMxl edXM4zz3QFyCNYPu3+fLzUi+I7BYk2/sGiWNpsd4noFBoOTNbwD6O8rZ2yYXYXxjUoTT dopg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=06wAJOif646+VyAqs5qKhAGpFfRMMbjLh19j1Z+a+JA=; fh=K/1LSZJXL87YLOlKfP75Ztr9pljnfMwk2f4f9Q0RMtg=; b=u/QnfLCuPpb/E+lvQZ1+7+pGpUcAzmK2c55AXpW/LN/vWlslqY3yoUuph1EFo5jTnW 2ecTCsYcIWFuCe1hNZ+TObyhsjk6bedatTHSQ/tRR2f/DyNz78iAwq+qz4vdkeehO3zx ZvOYje22A70Hm5mQIPufuIovad0h+lLkMRBCkGKfC5sfn2EXRtHlf8d7qVz5ZDgc7/Jc Gsp55j4Hvd06fimP0Z5/kYi18/ORZbh06XRIQBcilsoVAuXaDwAEd6ctedtx2JYuhZ/Y RSPDjfMHMCEXy1X+zNQroOZnBoR4dqfJj+47HPYcsFpRJM0cwkquBefcObDijRUDoJ0T veUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=b8k7YhgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a63f149000000b0053416d0b54dsi3458712pgk.518.2023.07.19.06.40.45; Wed, 19 Jul 2023 06:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@crudebyte.com header.s=kylie header.b=b8k7YhgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbjGSNJJ (ORCPT + 99 others); Wed, 19 Jul 2023 09:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjGSNJI (ORCPT ); Wed, 19 Jul 2023 09:09:08 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3DDA198D for ; Wed, 19 Jul 2023 06:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=06wAJOif646+VyAqs5qKhAGpFfRMMbjLh19j1Z+a+JA=; b=b8k7YhgAsq7OiZSetYiSTETcU0 ARwYiYFPH43QKiugOI1ZQQz7BkNmXgsjMB5hTpET/RkMwmW0kkyyBnbt2b3S4oLVCLS2MeCPcgiIA unJmeOcB6Y0Wk0KJAqaEJ1PUq+6z4NBmWY5Z7GyozEQbjhtEYGvak52lNF/n5PeOA25bQp4gPzLgu xBAUZOOVAPnqxEoDfiR5iMKX0djN/okfVNaQ8B2MPhF1S5jGNqdEnIL0A//SQ6kW+70BDf73Eqd6c HlbjDBS7DrsBoRHTtNQg+Pupm/UhzgV/JAfJNogtQqFfTpEa8GpvBWul6Bry92y2wqDKE6EBEoar5 w9Z7qn3U/56SpFgz3bK+D5Mo2rBpbBRZyTnzwh26r+pzyNada6wdQNiZTRePKiZlIZmwlnoKfz5Ve krprNmE0byQ1hQY3Le9TpcAlaH3g/01EH4v21Jpnx/JhIB66UgjEMFtIeai/pEPcz8F+y5G2zjClU wqGbVsxroxjm+1BCrKmijN3NloYYdL8VoC4ytsHSiF+XlucC5KSQHsZDPD3w+Pw16JDWiN/pDBaPq aORg6Rivvy61ULSld5gqMEU5UrzEDUqAt9w1pCzB8KqlfAFn5ctKsYdjfSF4Kf9N2Sb86VwdSFYkc j+e9Lt/0lnMqSv/WBA7Eq6WZJOBs4gtym2sB0hVj4=; From: Christian Schoenebeck To: Latchesar Ionkov , Dominique Martinet , Eric Van Hensbergen Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Robert Schwebel , Eric Van Hensbergen Subject: Re: [PATCH v2 4/4] fs/9p: remove unnecessary invalidate_inode_pages2 Date: Wed, 19 Jul 2023 15:08:58 +0200 Message-ID: <9712791.GGSLJcCJDP@silver> In-Reply-To: <20230716-fixes-overly-restrictive-mmap-v2-4-147d6b93f699@kernel.org> References: <20230716-fixes-overly-restrictive-mmap-v2-0-147d6b93f699@kernel.org> <20230716-fixes-overly-restrictive-mmap-v2-4-147d6b93f699@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-kernel@vger.kernel.org On Tuesday, July 18, 2023 10:50:18 PM CEST Eric Van Hensbergen wrote: > There was an invalidate_inode_pages2 > added to mmap that is unnecessary. > > Signed-off-by: Eric Van Hensbergen > --- Reviewed-by: Christian Schoenebeck > fs/9p/vfs_file.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c > index bda3abd6646b8..3809f3a531499 100644 > --- a/fs/9p/vfs_file.c > +++ b/fs/9p/vfs_file.c > @@ -506,7 +506,6 @@ v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma) > > if (!(v9ses->cache & CACHE_WRITEBACK)) { > p9_debug(P9_DEBUG_CACHE, "(no mmap mode)"); > - invalidate_inode_pages2(filp->f_mapping); > return generic_file_readonly_mmap(filp, vma); > } > > >