From patchwork Thu Jun 20 17:31:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13705988 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F792C27C79 for ; Thu, 20 Jun 2024 17:32:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1F21C8D00C6; Thu, 20 Jun 2024 13:32:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A3698D00AF; Thu, 20 Jun 2024 13:32:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 043458D00C6; Thu, 20 Jun 2024 13:32:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D94B38D00AF for ; Thu, 20 Jun 2024 13:32:55 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 8BCE31203DF for ; Thu, 20 Jun 2024 17:32:55 +0000 (UTC) X-FDA: 82251962310.05.0F42101 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf04.hostedemail.com (Postfix) with ESMTP id E171240018 for ; Thu, 20 Jun 2024 17:32:53 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=goCrfK7t; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718904766; a=rsa-sha256; cv=none; b=VPu/1a0ICG4NL23IQ43nKc4ZA+OS+zAYllXVDeT3Hoa5xp9vxh3BDMlwCfmjITyT71Gd9f zhb3ub8MVU6CEdCpreTpubkyjs1grQeWW/NuJ0N4SmHNHwrS/NatKY4SS6MmSiEdWeMQFK k5esFvEcspI1xpDrNCBgxmRtyGk23Oo= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=goCrfK7t; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718904766; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=h+6UwHgWPCU3as5VcBuF/bmsEb6ZpHwJQoR4UTelMjE=; b=ewfSaZ3o7LWXPbpAzmKNTATuam7lz6u2/UTV6vdVghN7KBQr6zwsDSghUN+57TG7s3HNFt wmQBKct80uYJX0WcNMG6KW9G5yqY5UlC+A9mT1+czEzlQqOWX/KP1u7D+aDDwqNuEYhq9c lzPFMan4m/E8occqU6l/fdK9dS1Shsw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718904773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h+6UwHgWPCU3as5VcBuF/bmsEb6ZpHwJQoR4UTelMjE=; b=goCrfK7tY65JdN1wk6HnSgyrYxqMeFL0Bl45CF4HZPQ7LpO+4EgsbGRANwBnYHmrvKLJhG IIE6xBaF2RrrGj2R+ttAGcDFml1Pei+R6xQ5gxXPqbus6pq+DsFjKLLVCL9E9QQsoTaHjO i3/9ITZ45jeS8kTZhL3yZRwpCJxa6yw= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-360-6nmBBFraPjiFkZ70vE544A-1; Thu, 20 Jun 2024 13:32:45 -0400 X-MC-Unique: 6nmBBFraPjiFkZ70vE544A-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B7B2E19560A0; Thu, 20 Jun 2024 17:32:40 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.39.195.156]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C0BA41956052; Thu, 20 Jun 2024 17:32:33 +0000 (UTC) From: David Howells To: Christian Brauner , Steve French , Matthew Wilcox Cc: David Howells , Jeff Layton , Gao Xiang , Dominique Martinet , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Eric Van Hensbergen , Ilya Dryomov , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Latchesar Ionkov , Christian Schoenebeck Subject: [PATCH 06/17] 9p: Enable multipage folios Date: Thu, 20 Jun 2024 18:31:24 +0100 Message-ID: <20240620173137.610345-7-dhowells@redhat.com> In-Reply-To: <20240620173137.610345-1-dhowells@redhat.com> References: <20240620173137.610345-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: E171240018 X-Stat-Signature: kzx56tmcs5ban1gx8ffsxcbwu67oarj8 X-Rspam-User: X-HE-Tag: 1718904773-822624 X-HE-Meta: U2FsdGVkX18Gn7TXT8hq/tIB09RY4cXiYOST3CBuss0vquLElTiRs9okCbvghz3c55ehRfZoO7qoW++gh3W0gbDWkjXNDOdExTo8Dwhzd15bWb4U9TRE6SDcOfMyDBkHQWWA6eUhnXYQl/zFbD0os+JMKPiq2RoraE81l/0nlQdN0yMiE1KijEWVjJQyP76Ce9PUg3J4TurMkprEI2HtU9tTMe4/NSnxheH5x/oI6ETnl/1n73BkY3LTYX/8EiXFvUpS2yzIRDR1aLNtb9eJc8zbulIVTKUDEIs0s9z7Q6E371AcoaYF/vrOMN3zX/OkB3kHjrs8VeSRAVq1p2aS6GeRlJbOxQm2y0gsxXhdicnVBV6J2L/17NcIZBX/gkQjae9+T3XW78RysLQkTTLMu1muzg2wQQYXpG1xAZsNfPqDueimYlOtGhvi8gluryCzs8bDNoMS790wrVPL+iYnwhqxY7YUkzVwfRACd5IuMp1yklPKmU+h0ovY13Wf7CSx/SSzr7SIFA3KPaNNHaUjrzTifPxgyMxo2fy6fDatyGx2n7fBK7VZNtGyXY9MFmrTuETdxpPY334atZ38mzF9UOi6ynJAsYyd8E1XY0ETGRjsBX5l7YvMhADj7IQtAtX0qA12c8UpNwYiO65YjWR9AqzyMeReUcGqK0IT9sqwzWZgORu9TGvWT40khJ23eqSKjS1Fb1Iyu2Et3+OZwtKZFZYK/x6HBdi1gM41F0d0DK9qw7wG+rHsAIGzLyCLx0VgHTdzXLtxbZXCLJsFXhsJNZk/6mrIOw+GtTE6eGG+faMWuq3GYu4UL1wRjMqyt5Ri7cZrr0s+XmOt3XEtcQIRuL4VHV67P87RxYOxivY+hLdl4I/DamBh7ZiyZEwg+TtEwV5MMrx5rlCUY2U+m4Q67M8mzcQl63VTVbbfcovf4w5fjtiqycKGDIP6HJsPHqwOwXq4IW5rPhlydxRj+W6 eph9LyrQ Rxv7Wb7K71xnU1AxJ0DExgFREI50DEDZqcCeQhEVTNlgkEhDYXOp4UjFxG9yFdhmSWPFUOV0bXYv45jBZMSz9744H2+2aZeaJxrGYo8ze4Zw/ak562howBtI98EV/TlWvuLxB7w/MFHFHzwsH6hv3H97i+c4xBTcD+toEgKFEVj2N9BtHBfv9Ba2ifnu3xuKcKYARz/xvIk6pZDjRG6bf38sl2UlMiLjG6x36U6KYAMZg+9YWPnZQp9vmE4ypjYLGcsXXQxk7uEoYAXMq7BJPq5nG6Ch2ksaqoCnZ7FJC4z15scofvnw2TPPXIogC099Lq4pzLGHWHZNORIDfOECh+NidgPKQMX0KMvYl3v8SK4qDkc4Q9wp97XJOp7dYFjzxEP9qzVaZgS5IRdaEvCtwyCon7TUUJ98PBWQiJnjErqOq7a17kAc04YThtg/4r0qiy4cwB+ggy8obvWnb040bSUIj+8z3Yxq1gOCa0pXlUjPqUtEI3ut1MoizxzxwnoLi14eoZkQFuJjWrpBnrfKGrhIQAnsBZXu2JHztGqpl56lcOD7CoWO+j6RPqu7BdmfIwx9rdCpYsQgwEteiOgf8mSQCgqQ2/cbCTrPP10scLFa4MJIvjk9pJKB9V9LxkhAzTzvrVvSghopsI9qQfJyj03T9cw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Enable support for multipage folios on the 9P filesystem. This is all handled through netfslib and is already enabled on AFS and CIFS also. Signed-off-by: David Howells cc: Eric Van Hensbergen cc: Latchesar Ionkov cc: Dominique Martinet cc: Christian Schoenebeck cc: Jeff Layton cc: Matthew Wilcox cc: v9fs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- fs/9p/vfs_inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index fd72fc38c8f5..effb3aa1f3ed 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -295,6 +295,7 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses, inode->i_op = &v9fs_file_inode_operations; inode->i_fop = &v9fs_file_operations; } + mapping_set_large_folios(inode->i_mapping); break; case S_IFLNK: