Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp611156lqp; Wed, 22 May 2024 14:12:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVY3V7dZCT2LRqXT62NkeMKSu/OU4ni4kucu4Xfo3KWNykxPtNRx0ny8h+3tZkOpwoCgw/yWHlJvaZaljynSGLKyCU/9EfUW/7BsgzNoA== X-Google-Smtp-Source: AGHT+IGuG8PklSNzPP7nALj0pyxa+n288twbxzzmQ9S5GqIU25mXq2/yNp+pdxgOAexjA2sJtvGJ X-Received: by 2002:a17:90a:4285:b0:2bd:4d96:219e with SMTP id 98e67ed59e1d1-2bd9f48fd39mr3384182a91.26.1716412353131; Wed, 22 May 2024 14:12:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716412353; cv=pass; d=google.com; s=arc-20160816; b=wNmbyWQQUvJjE73QRnzbI361of2qt7LByZFTSrmRAFQtFVgyttY4m+8y40kMwO+ur7 zUf3NriloatK4lRzKReHzSS/mchfzN/9CRYO93V+ePwoa3cc5MzNOlOg4AUnEp6xZiSP WHX9/uFDg5DXtbkHPdqvfyO/rzUC8iD2oS8cCPb87KksFNYUpzlMTTg7ti0RQZt97hOp e+GQ/fZGZScYae+mawuZPF/9yhF9QP8pwJwL08L884s7w5G5yUFTxCqQScfzYwcSW3V2 R86H9/56K6lDWS2IPrTT6btqE3yZVXTheEr3SM2H9ocP/bW0kXksaBkwr05R18L+W5To vBnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:to:from:organization :dkim-signature; bh=e5HgR1UJJHE4pqNLP7HJRqo1yRZdPdGaAXEqWOstEzk=; fh=st3XitpcQ99e4W9xYAK31ie7FWAGlwLkVw5mGkawtEA=; b=TNk5VnEAqOeB3eaGy/IG4uYpj4Rt+9/RjxM9wLBgS01+PPSVF4A36F0QAbLaqPI9R9 tBp2+BOyanXTLUk48NjWqeMx9wMFnwmQkUMTj61C6k00ViKsYZi4za4oHg7NUbrkBP84 ikbh3mIthUHM8ceqGfFF0d0q6+cGGsp6CRawbWTIE5r23ewnKRIB8Inxyqr+aj/bFQ0q MzH/VUz6qMcmJK293OZXVpddmz3C7o56UuUhNhMaj54WG4lQJsCyhAc1muokrz3VwdNY 9OkGmHoDq29faBhdDZpwrge1zJ4hvhetbDDOq2nueLizKCoyS+2JOq/2zNJ6LUA1qA7C OllQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AG2D8dQk; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-186721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9f15c80si304934a91.109.2024.05.22.14.12.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 14:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AG2D8dQk; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-186721-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A6018B216C9 for ; Wed, 22 May 2024 21:12:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89C5E1465AD; Wed, 22 May 2024 21:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AG2D8dQk" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F90757CA6 for ; Wed, 22 May 2024 21:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716412342; cv=none; b=JqsoU00asBkZbnDTWOaF7bP7XDwKfY9R5G/m6P2+naFdupvgyzFveT14mxYpV0s53RT6rbEj/tX1gsEEj3Z/F5bSs9kR2fnedLNP5QxIMBqlq8Uo70Cjyf2BzxSOeFC6FWgQYHG047vCYhgDiR8O+6zqBIvifupxKkEBLAU9+uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716412342; c=relaxed/simple; bh=DYwtOowSorQf8W/s1eRFLYfspBNq5BINeak1ohYZ0f0=; h=From:To:cc:Subject:MIME-Version:Content-Type:Date:Message-ID; b=mmdcmnbyOzJ5VGlpS2Z9luzVO2HzGPm/Yx9eeOQHIvwypMwkvSPE8dCkRq/9CcTG+Tp1/N9UMwEybBA6Xw5ZwsPNKvvDXDyxTNxrYosTxeeIDSvMoxF/a4A/JmblHgXjDrnnL/xKQEqJwSL9WRwTIckty6aXl2vn9pPX/mOJ/Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AG2D8dQk; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716412340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=e5HgR1UJJHE4pqNLP7HJRqo1yRZdPdGaAXEqWOstEzk=; b=AG2D8dQk1S5jv/pUYmcfxVunmPmIDnakGXAZPDmAnY/8SC43AROhjPpWg/0XezN//ghrVi AY4yV/v/gs00zANxeoPSt80yF4lFWASGcbDiQfBYuh7YqVlTVgT+WaLDIwutSV+Lm88qI7 BW2M8P4qYUboiO6drTN1GUUMt0rJzY8= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-142-jD23OcejMCWzTI9Q9-d0Eg-1; Wed, 22 May 2024 17:12:17 -0400 X-MC-Unique: jD23OcejMCWzTI9Q9-d0Eg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8B79A3C025BA; Wed, 22 May 2024 21:12:16 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44C0E100046D; Wed, 22 May 2024 21:12:15 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells To: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet cc: dhowells@redhat.com, Christian Schoenebeck , Jeff Layton , Matthew Wilcox , v9fs@lists.linux.dev, netfs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] 9p: Enable multipage folios Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <463765.1716412334.1@warthog.procyon.org.uk> Date: Wed, 22 May 2024 22:12:14 +0100 Message-ID: <463766.1716412334@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 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: netfs@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 7a3308d77606..8c9a896d691e 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: