From patchwork Mon Jul 17 16:29:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 121448 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1228215vqt; Mon, 17 Jul 2023 09:52:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlHvQ3nKhrWPR3TqB0NFPq2Um88njcNmdnKeocmwEsAof5cyLRt6XoUa3TEsa7dW0sY4Pyft X-Received: by 2002:a05:6e02:12e4:b0:348:8146:ef2a with SMTP id l4-20020a056e0212e400b003488146ef2amr451394iln.0.1689612720427; Mon, 17 Jul 2023 09:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689612720; cv=none; d=google.com; s=arc-20160816; b=STEW7MCD76vly38/wT4NssPxCanHvLmT1lA/l2j1dp87eLpKDLYvgOykr1TTmrepmk q7mSnX8/ViKLjrO245glE9viY2utlySojXHJFc9P/ee2lSsadyZmvZ/IOqXWk+nXyzGF /OdZq0LPBb/vpLSo2NbtHeT4N0HjN7hHa/otAiPTMma7Aulv0X2yONVvpNe13xXihCqA mfbopnGFLho5KJQEfdlt3vZYwGZqte6aN2QwWmAJPDZo35Sv6AfYBnxTdinRDtfquYe/ pYf85rZ2hkWx1qG9yndENcewQyzFQ/eXHToXwu8u1R/cd3jUdAVRqP70XJ4VVpP85J5E tDMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=5VlH5g3I7UxUdpkV7PBTuFbe9RSmA3Kq++5tglMgMxs=; fh=j3YVng1RRZ6+ldvc9lS8NG/D3Vm7wGIMCbG7LdLsfsQ=; b=W2T9CpUcMzBiqfp0j05MBMeJXG8UfX8jxiG6SkZ2QRsSkW/JQOKMbKkzMgD+4ZFmh1 /Fa5Z+IVcW8QpUPNwjY0dHrJEWQCR5ta7/ZAHBsS74gvUwFYpDlw1u0bV1ORM9+IjoDb oiYeGHsgz7bbDJOlZBP4Y8dM1N0ccSNDoITc3fjdmhgsCmDOjqWi1RgKfl25N36tmOWT 13RttqLqPL3XKxo6PGCcFRcbMUKnFcVco6TIeywq/Y39OegXU+23Ee1C4irH61lkzqng zeBa5FjwDjDcaHrP6fkBKY/HmrxmrwRpTbcF+Qb0uID6xZqkQ4hP8KQzSvK+wPsuiOZB r5Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hkI6fdXx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a17090ad34900b00265b7cc355csi107183pjx.106.2023.07.17.09.51.47; Mon, 17 Jul 2023 09:52:00 -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=@kernel.org header.s=k20201202 header.b=hkI6fdXx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbjGQQ3V (ORCPT + 99 others); Mon, 17 Jul 2023 12:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbjGQQ3H (ORCPT ); Mon, 17 Jul 2023 12:29:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E651B6 for ; Mon, 17 Jul 2023 09:29:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A31A6115B for ; Mon, 17 Jul 2023 16:29:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34661C433C8; Mon, 17 Jul 2023 16:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689611345; bh=HtOElUNyoZNBTq+YJJPGA6QUAQwhzK9Ts0x7WmL3Ogs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hkI6fdXx+442oIfRvhPZtlwLRAzVGAH2TUWRkO0HgzibV3xnV7FtN3EEfECZKv1BD kotg7kLZd/xdqnt1cVqDuIvspSGamAURkn7SQFzKVPlt6a1ar2/QvMHVyIZlbWIci+ /XvOh+MAV8tKYulIdNsNARGdQWzRPrZ27FzsUQi8DTZE5gpFHlN0onNHE5LHYodRa6 2xddGuY49CzDvV0U5jomPjtnLsV3EbIWfYtg/lzuNk/AfLU/q6acEdXlMd8ZbFgWme C9sbZPEjrOHjPWg8T4T/tSCB7VgHsTJtDa47HHRSbaFdHPwiwA1QoIhKKMMe0Ys/vA z/7BQJS0AvIRQ== From: Eric Van Hensbergen Date: Mon, 17 Jul 2023 16:29:00 +0000 Subject: [PATCH 1/3] fs/9p: remove unecessary and overrestrictive check MIME-Version: 1.0 Message-Id: <20230716-fixes-overly-restrictive-mmap-v1-1-0683b283b932@kernel.org> References: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> In-Reply-To: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> To: Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Robert Schwebel , Eric Van Hensbergen X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=733; i=ericvh@kernel.org; h=from:subject:message-id; bh=HtOElUNyoZNBTq+YJJPGA6QUAQwhzK9Ts0x7WmL3Ogs=; b=owEBbQKS/ZANAwAKAYj/1ftKX/+YAcsmYgBktWxPX9pZef4TUTigWeU3IyymFufia++0mC0aA cCwpcYpqxaJAjMEAAEKAB0WIQSWlvDRlqWQmKTK0VGI/9X7Sl//mAUCZLVsTwAKCRCI/9X7Sl// mHmSD/9B8p6xF2EFjQMbCX6wfXlqLY72QBgwxjLmcSJNov5L0lYLkg0kzZxkqX9ayV24SkeXDww T7XYiKG5Z9fkofZ/MqLNgOOIxGOHu/e6XKt4e5NQ/KApJecLM0NdYGGbw3pLY7L9kfx6on+CCvT SBUcguO7Jra30yIewz5WLmc1S8kDQSPQ3qRz2MYOczeI+f7s7Bp1kQeh287QJOpbPNhyIpoqsja F5p3ggxbSlSzeoWj37gouzpQO8ETr7LLELU4UAr7VDXG2D4SJ08hftpnySiQN/ZSu5xrPC4fGlI CcHVa53YvOdfBSF7YDEaMonpmp5TxxzElDDoe6n7LHKIrB+n5tun/sN674PbHLmA6GLnDXaJQZ0 MJ8OCc3dq5/nvSQQ2TeGOGrYWlB3elTKCMKwiqsT/eEM6gDoJv1OMcd5DJn839LtHPILc0wFZX4 +81bV3bUvPLSiZsYBlNOyTWuyKEgcUDnoRPfP6tzzMyI5dIABO0zS280WBixurkxoE2PRmqvR1a YRzotcC3Y/YDeUQ9Sdr6wyAO4Nu/BDffvU5ibl+v/8/1UgtmMnSpVzl7nrxUIzx/6chKYOb7lqv pRHW8T/ltnnL5DF3PAEpXxc0tXMov5H+ro6DVNzlpjWWpye24gFmWcJ252FUwQENgQJmEyOFu/i MRll+XH93fvfmWA== X-Developer-Key: i=ericvh@kernel.org; a=openpgp; fpr=9696F0D196A59098A4CAD15188FFD5FB4A5FFF98 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771687347764760956 X-GMAIL-MSGID: 1771687347764760956 This eliminates a check for shared that was overrestrictive and duplicated a check in generic_file_readonly_mmap. Signed-off-by: Eric Van Hensbergen Reviewed-by: Dominique Martinet Reviewed-by: Christian Schoenebeck --- fs/9p/vfs_file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 2996fb00387fa..bda3abd6646b8 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -506,8 +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)"); - if (vma->vm_flags & VM_MAYSHARE) - return -ENODEV; invalidate_inode_pages2(filp->f_mapping); return generic_file_readonly_mmap(filp, vma); } From patchwork Mon Jul 17 16:29:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 121444 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1224486vqt; Mon, 17 Jul 2023 09:43:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH49n4Xg4QUFC8ksSvmk3KoBBSbOO/5rod2WPIFm831CI+bTVMyq4MRRbgOaiMcdZWcqMGb X-Received: by 2002:a05:6512:158b:b0:4fb:8359:e8c with SMTP id bp11-20020a056512158b00b004fb83590e8cmr9296528lfb.34.1689612233790; Mon, 17 Jul 2023 09:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689612233; cv=none; d=google.com; s=arc-20160816; b=ot7w33pD/oCRg6myjvcr0j8r/SVqFDKEzYbBf1yjNu7OLXN/0NGwDdt1usExnJMIdw J5Bwf14pK0GIMMOR9d3yZlLaT987sFaHoHaIkSFwBDPqRMTg+61rn6VPbBSEQO4h5+WT jJsNoKWC5UNMJqqpD1Q/O3akfYS92/Ek3trpYq3/xkoZLsodP5K77AgBqNgYzKep6iRm VpCnpOV69D82qpergd0jrWd7QeTIjm5rq2yKLE/89V7YyPYcO9ksiFaWpzCpJnWEIXOt hBcVm/S8VsgFslshNCwJou+tVdm4lSG0q6EZmCYCy+NjngQMlk5h7LAL0/EYqXDLVoZP /htw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=nGQfKGFaUGEu1lJEHr6bl6VRwinlubayySMhu+UeIBM=; fh=j3YVng1RRZ6+ldvc9lS8NG/D3Vm7wGIMCbG7LdLsfsQ=; b=tYSXrZoIKJH8ro6Cfe9LC59D56UV/qlJjy5tnPBVdhRDwDDRT5Z8tZ7CMv8BetlXO0 EeSLXpYj4tyDj3xGX7WVifCEbZDmle5I9d9uhYw//YiVbrj8W7uBgZfC+Qg1KqkgokNg bNGWRK8wOuTVJQQD20RvFUtSJin4GvkJKRSHjeyQJFADn5iJZnwu/vBdTjh1MipxdCTh fk3jNI8SoUu5nuKIjeh0hcgLLgvEnaIX1ecYMB4e9uqKcFKZ+v80XPny+foFRT5uNom8 xltfywkYldEaUILEXHM9ftaWA4S2938LnPL2Sx/BTpjoJACBOzvt0rryuPth/Y8roxmr 2ysg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jbsob+5e; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020aa7ca4b000000b0051ddc36463dsi14349466edt.629.2023.07.17.09.43.29; Mon, 17 Jul 2023 09:43:53 -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=@kernel.org header.s=k20201202 header.b=Jbsob+5e; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbjGQQ31 (ORCPT + 99 others); Mon, 17 Jul 2023 12:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbjGQQ3I (ORCPT ); Mon, 17 Jul 2023 12:29:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD14191 for ; Mon, 17 Jul 2023 09:29:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A2DA6116F for ; Mon, 17 Jul 2023 16:29:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BAE7C433CB; Mon, 17 Jul 2023 16:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689611346; bh=J5f/y73gbpYzAPzzqE3aQSPO6NaFKpqMLlK+5QoR/ac=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Jbsob+5eNtbIFKANOFOdj+SVGklOF2uuGBVENNkiCnH6O4NdsDh1SfnY0TFd4im4E 3geBuWgHoO0mRJ5BV/zvHzfnHBFK0wWd0Rhf5FrRn49iDiIvbTIpnw6Qiv0sgDavlV 3AJi5EJ+4BJVmhlUhVRPQ7MWLg9oMQkIQ2c5JmFyRVJ/SEfmuHViZl0YYIVc8Xehr7 ht1lBOOz6vtH9ZS7eagxjA82K9jzMb+7Bl5A+yxQcPlVr+Q41S/eVgyGUIMUv503Ob D5ZMMMB9oU8VhWC/l1z014kyx9NCc9OFC93JO5cA27UK9MY71Yw4PhTM2q2NuOcqgh 2X94XS0ev7iRA== From: Eric Van Hensbergen Date: Mon, 17 Jul 2023 16:29:01 +0000 Subject: [PATCH 2/3] fs/9p: fix typo in comparison logic for cache mode MIME-Version: 1.0 Message-Id: <20230716-fixes-overly-restrictive-mmap-v1-2-0683b283b932@kernel.org> References: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> In-Reply-To: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> To: Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Robert Schwebel , Eric Van Hensbergen X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=801; i=ericvh@kernel.org; h=from:subject:message-id; bh=J5f/y73gbpYzAPzzqE3aQSPO6NaFKpqMLlK+5QoR/ac=; b=owEBbQKS/ZANAwAKAYj/1ftKX/+YAcsmYgBktWxPBdEw2pHkHpJf4Xrs3jq2I1uQxbOZVPS9P 0SXZzDTniqJAjMEAAEKAB0WIQSWlvDRlqWQmKTK0VGI/9X7Sl//mAUCZLVsTwAKCRCI/9X7Sl// mDCRD/9ikTI1Hr1beF9eb5g7a/YtQi7qfsc5Y7ivQJ7Y1EVQc2SnXcCmMNcL1QMqqPS/Mi9GOmc Knfagji4/igxXJxzv5X/3QQfyTsAnHUeU66Lza2/bqXbStwdyrPMxOxd0/DkWjHPe+yEKhZZyTT gTFyUze61f5frLrmupDaHkqbum5R8zbpns4UmKMOxcHh40QGfMmwFCJa3lVate72qecFe0HZ2im ECX19Mv5XSRJ0CkQu/DyFFyFGGNNRE2Lb12vdoj4jN0Ve4CEsuxIdeLjuSscy/INnPFahg9KOMM Q/5NpaPq9VHrAqqgRMM6kqI+W3qzj9FlTg8BtWEeEvKZ48/owazDkYRzwJyT4u93INDREraNfw+ I/v4QvmgI52LHDB4Bg4Jx4KIMW6iuqD6MOPJJNBrlAayGwhhpWq/r+nSrqWhJQeSsH6/O2J9U7V WG3DDqqxeZHzUqJaZNqqNueStcIl4i3qT+T7hHpSREX8d/UYqzw9Pgzfq1EGMpsQ+Rxy+f0FJZd YF0EvBRrJyvNfxmcCnwb6KGMHn4ndXYaSSumXr9D7oOag+btXlwjfpYngzhyV7b0BFr72pG+wD2 Y/vSlcQNXpSEPh1463LeNfg8wEnXGipjJvuo2EhMYPHb3zy/0/Vtefp1y/P0DKgaF8yUOs7pucP KwXH+8uf62IF9yw== X-Developer-Key: i=ericvh@kernel.org; a=openpgp; fpr=9696F0D196A59098A4CAD15188FFD5FB4A5FFF98 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771686837905305434 X-GMAIL-MSGID: 1771686837905305434 There appears to be a typo in the comparison statement for the logic which sets a file's cache mode based on mount flags. Signed-off-by: Eric Van Hensbergen Reviewed-by: Dominique Martinet Reviewed-by: Christian Schoenebeck --- fs/9p/fid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/fid.h b/fs/9p/fid.h index 0c51889a60b33..297c2c377e3dd 100644 --- a/fs/9p/fid.h +++ b/fs/9p/fid.h @@ -57,7 +57,7 @@ static inline void v9fs_fid_add_modes(struct p9_fid *fid, int s_flags, (s_flags & V9FS_DIRECT_IO) || (f_flags & O_DIRECT)) { fid->mode |= P9L_DIRECT; /* no read or write cache */ } else if ((!(s_cache & CACHE_WRITEBACK)) || - (f_flags & O_DSYNC) | (s_flags & V9FS_SYNC)) { + (f_flags & O_DSYNC) || (s_flags & V9FS_SYNC)) { fid->mode |= P9L_NOWRITECACHE; } } From patchwork Mon Jul 17 16:29:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 121443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1220756vqt; Mon, 17 Jul 2023 09:36:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGW+LZP3+u0PVycHXU5hXZXDbuowkPCqHcYdkP4KJA3Q2PdpL2XqVkdQq7KmEh6BHP03lJ9 X-Received: by 2002:a50:fb14:0:b0:521:6ed7:aab1 with SMTP id d20-20020a50fb14000000b005216ed7aab1mr296778edq.7.1689611780269; Mon, 17 Jul 2023 09:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689611780; cv=none; d=google.com; s=arc-20160816; b=EsVvq8bRFsZU4ymoUaDuwd2sidOnq1LD5JiDo4qCDjOnDwQNa9Fdjuglh3GjtBWJI9 ZUpUBFyrYsKSBXGobr1SKCWOHRJBeKhyXypXXadcQ28OvsRZQ/18Tx4aIAs2F5Xto9+s ftuMfEZ7yuR2Nn6MlM/cy6jjUZY55lv5Qr3QSNNxbjj9P7L7+MAyxoSkQKIsKBIgRoDk iyyDuRjqOQms9ejqukvE/hSqjTryFrooZatkcPEXMcAOEYcOVyyK9AUa7/rPojaO/jHn u4rqRlb8uFmHUWGOIM/oqysAlrbJ/bgOmcs/kdvuF8OQEpy4htDlDzFjGikl6fzmaGVm OulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=/65y5lIyumiRObPaISS4xUbNJDrcRzEA8JLGMf5DSNs=; fh=j3YVng1RRZ6+ldvc9lS8NG/D3Vm7wGIMCbG7LdLsfsQ=; b=wSfp/PL2GApfXvWqI69KTy5EpXsUrzvOqLlgpU7puZ0DC8ibxRn19PHhlK7abs7qvS ebYfzicnvvKDT+dJAajHBsmon9+kXtucHhsC1tWtm4zE4Zudv/VJOt4mfIsh0pHr8T9m Ic9Y4L9bOgcE4kdpEt6a/myKKVATMHn4rNGKNEMRJQShqYvklgLgY8ZaW/GVckF8bj69 z27wRa9HqUxPbs+64A4cAtiE+9MqNcaLs3jo7kdkQYmWFpPr3pTn1UcbCa6Rxra558Sx 2f03Jet9tY7TwdYQhlZYButv0VdS9fTwA76E0hHM2u/70xorVp0eJDzo6p3BbCnlt1jV RoAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mF9WgaFH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf10-20020a0564021a4a00b0051de49abbd2si6119086edb.483.2023.07.17.09.35.55; Mon, 17 Jul 2023 09:36:20 -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=@kernel.org header.s=k20201202 header.b=mF9WgaFH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbjGQQ3Z (ORCPT + 99 others); Mon, 17 Jul 2023 12:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbjGQQ3J (ORCPT ); Mon, 17 Jul 2023 12:29:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCCA1B6 for ; Mon, 17 Jul 2023 09:29:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7482E61172 for ; Mon, 17 Jul 2023 16:29:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E34DC433CA; Mon, 17 Jul 2023 16:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689611347; bh=oLQSaca6C3+dC9X6PrVs62lkR/VnjdA0ABRf6CYLTn4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mF9WgaFHfh7/nkSXFaUSle/aJPwsbgCYu5sjEaKiau1FgvJi441GhLi7St8cF2Zv5 aaKKLmSTuVLFyFwz7u43uPYV96r6oDxm/f1i/1MkrrgqJ0BZIVKtnhHk9JLdVCMUUd g9jjf+sv846mlCkevsR0xcpDPxGsgWfSZ1438VRAYaAcx1SYVbXd/9e3sGuw344kXi AQkOhEcZ2S90xAuftc4/FlcheOY56GVg5ViJ1i4ZmpTAKOB/hmRVRDI77/GfcXa1G4 gORF6f9h+Qy4sMNrzcsAE/gzk9SONY5Gd+/os0hx+O1KJvX75JrBaO1P7Hb9AfhT/p Tk5UANY+Y9XVA== From: Eric Van Hensbergen Date: Mon, 17 Jul 2023 16:29:02 +0000 Subject: [PATCH 3/3] fs/9p: fix type mismatch in file cache mode helper MIME-Version: 1.0 Message-Id: <20230716-fixes-overly-restrictive-mmap-v1-3-0683b283b932@kernel.org> References: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> In-Reply-To: <20230716-fixes-overly-restrictive-mmap-v1-0-0683b283b932@kernel.org> To: Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Robert Schwebel , Eric Van Hensbergen X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=868; i=ericvh@kernel.org; h=from:subject:message-id; bh=oLQSaca6C3+dC9X6PrVs62lkR/VnjdA0ABRf6CYLTn4=; b=owEBbQKS/ZANAwAKAYj/1ftKX/+YAcsmYgBktWxPIC0EaLAznACdWpUQZhpLof/8y5QRbyo1C QtxwvZGd9qJAjMEAAEKAB0WIQSWlvDRlqWQmKTK0VGI/9X7Sl//mAUCZLVsTwAKCRCI/9X7Sl// mJsQD/oC9v+6jOyzJWP6TF7YZ4ZbDp44VBwwjLdS+s5gxEipUVbBCq4gn76JX1RR1GLCFwsTOpX HLxAFpWM+XPKORHARacmgzm3S1n74LX6ORqYOX1lyYEkc5kCAUhKOIwi0WVmxdq4NQcEqC9mW/r SGpgBb9vK4ZB9Xh7WFwlXQf64AuVRqTSoRUP2wnv//5bTx3BDnX8k8iY5ouw6Q1HhmUImxmOjO5 /shsp0gb385wt1CzlIz7FLS4OInE5cw4rTJsX/imwQCho4B/R48qrW4bWg57niVAjnH7hBIGoLg kvDjO1MPspB57+T/E+jT6OKLN7uBgPv1ruIaaco36A6cVCMOfwoOJwazOBO1h5d5n4FC4kR0Qiq tp29N6A8l58InIH7pN53rd2N3XR9Kxr2kaGtfHOKNltjqA17f5KlKlhK1AKeQYyGPlBq1VUjrIa 71gv44P90Gnee5qmmUSlBS3Dicw4KQCWE53rBn0ed89ATnzma20+cXjlR9WRnA1UuyAesVgueL9 VrcuQgOdLzYqGxImS/mEjGTn8Puxap6mbUIPCzpPP922XiLdMGbXNZ/0258Xvk+gc4Nv3GDsDmP sSS7k0l9gayH2basmCQMid1yTv7Fe3/S6P2retom9fo4bEK5FS5BA4flJn2O8iEB1VuwyLld3jt 8We55fT5hyekujQ== X-Developer-Key: i=ericvh@kernel.org; a=openpgp; fpr=9696F0D196A59098A4CAD15188FFD5FB4A5FFF98 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771686362361722804 X-GMAIL-MSGID: 1771686362361722804 There were two flags which had incorrect type in the paramaters of the file cache mode helper function. Signed-off-by: Eric Van Hensbergen Reviewed-by: Dominique Martinet --- fs/9p/fid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/9p/fid.h b/fs/9p/fid.h index 297c2c377e3dd..29281b7c38870 100644 --- a/fs/9p/fid.h +++ b/fs/9p/fid.h @@ -46,8 +46,8 @@ static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry) * NOTE: these are set after open so only reflect 9p client not * underlying file system on server. */ -static inline void v9fs_fid_add_modes(struct p9_fid *fid, int s_flags, - int s_cache, unsigned int f_flags) +static inline void v9fs_fid_add_modes(struct p9_fid *fid, unsigned int s_flags, + unsigned int s_cache, unsigned int f_flags) { if (fid->qid.type != P9_QTFILE) return;