Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp332049rdb; Mon, 29 Jan 2024 03:55:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKU+uY2oAu2xRoLR3xLIpxtv6ls81Yslb5x/KWKn/EF24H3cgKSdXkzPl5FXqBx24/fmqy X-Received: by 2002:a17:902:e882:b0:1d8:e4b5:3856 with SMTP id w2-20020a170902e88200b001d8e4b53856mr2426410plg.19.1706529349399; Mon, 29 Jan 2024 03:55:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706529349; cv=pass; d=google.com; s=arc-20160816; b=lH5+E7JDBgAee9PakGM2fG2fJqdw4lySCjKybC6aouqwvKXNGapDBOd9v+2geRMSW7 xeULWSDV9OSrzph1FkILT69OdJKgfw7+i0HdJ5jq5ZLUqwbWvCKPRbmvXfI0Fp+o2dE4 P+2rkFUg14QR63+gZrl7lu1jhiS2cX5kI5P6adfRdyiXEGYJlKTcfmiexIhu0CjuivvY tZTZYpK47axMa+A2Tef4m3QU6aKz7Rhg+tjdxBVAGEr1Xw93i9Gr8ejqgLENOGcgJAVs 4LBnLsZz6Oq9peoslxWxSZtGpojQarn6HDydOpJAQGVnLNqU3xnosBviHftSNoNso/eG TSFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kFEwBUvtYUzBE87TzSBBZpD+94Lt4ih08V10OQ70ATs=; fh=TncisnLepamR9eYyUPx30nqn5b6qQAsmiKSJOESmvbg=; b=pXdoMV9imubI9YvfMoqp4LqQiT9Ne+rfZuIzusQoMcrrppZnB8ob2cJpUgBDP/it9I VsswUjj/bKHky0u47AT0ORhV1jLxVn90weMFBkDrDRcXdB6sOxNy6S26wOk2NeaUz2qe myj/fonR1dBPpSLhZXpSGCOI+fP3WvlG8zJJNzjJ/s/r3weNIo14ADTD1i2AkCwvVvMA SqmuWkLGoxt/lGFeYBPKTj1RkzudKOluEN1onoTayGsYmZlRdSJMq8g0ubQCsgJs6LX+ ps7EyKsxWjRvfxLCW4DjFMqt8vW/1U+Xdz+pOzpReq6CKKWh6ny8Qjym4r0bzL2BnX5Q Mk1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=So3bh3vq; 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-42648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w6-20020a170902d3c600b001d8ef01f108si837027plb.221.2024.01.29.03.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=So3bh3vq; 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-42648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42648-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 17A742820C7 for ; Mon, 29 Jan 2024 11:55:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F278260275; Mon, 29 Jan 2024 11:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="So3bh3vq" 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 9D6945FBBE for ; Mon, 29 Jan 2024 11:55:26 +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=1706529328; cv=none; b=qpxp8jsfEmxra76bYv8x0ifTNEhJ0K1KU7zavEkjuZ6VQLwfG2TGwDHjPj24OfQVV8VZHQtvbzXhG4pqwlFuplD4NJ0kdimXUi/slxS22odqb61dKUJdElGLlhinlA+4IpwWzirgNQ4nNyYVz/dch1WVEnGWny6KYFrdDCru5Os= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706529328; c=relaxed/simple; bh=AnzxcJj9wjtJkMYs3W/gQlln1rYbehXjbzJ6iBM9txw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GkPzn1dvef5HHnpabgUr8JzVAOv5019JxIYLGekume+9PB7iiigLzpzC4a/4kBOtPNbmEKs4DbEXwiOK8XAXakoAEKTw9ExkpCZw3jkcoVnu00+cuA3W2NeZoVPNNn71gX3Ki+pKXxWezjKIuhoWfry513qY+O7CbzdrIC36BDY= 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=So3bh3vq; 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=1706529325; 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=kFEwBUvtYUzBE87TzSBBZpD+94Lt4ih08V10OQ70ATs=; b=So3bh3vqnUgd1pGptXc5gkM4++Io5cbXKaW6EQAFkCc5mWMkOOfx52fhMxnAgN6XFBN+dD TZnGZmIfD7t+xp7OHJBJu1LwonGr/ayHGZ1vpO2C/xTfJU8kqFEqNc/569yMki/nhIBryN pS86i2mu7xlQ4aueKB9GA+WbTa4S6ow= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-470-3fM3ZQmaN2O0NeesbjZpxw-1; Mon, 29 Jan 2024 06:55:21 -0500 X-MC-Unique: 3fM3ZQmaN2O0NeesbjZpxw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 3FC87185A780; Mon, 29 Jan 2024 11:55:20 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id C99E4492BC6; Mon, 29 Jan 2024 11:55:18 +0000 (UTC) From: David Howells To: Eric Van Hensbergen , Dominique Martinet , Latchesar Ionkov Cc: David Howells , Christian Schoenebeck , Matthew Wilcox , Jeff Layton , Christian Brauner , netfs@lists.linux.dev, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/3] 9p: Enable large folio support Date: Mon, 29 Jan 2024 11:54:35 +0000 Message-ID: <20240129115512.1281624-2-dhowells@redhat.com> In-Reply-To: <20240129115512.1281624-1-dhowells@redhat.com> References: <20240129115512.1281624-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 From: Dominique Martinet Enable large folio support in 9P now that the VM/VFS data I/O interface is handled through netfslib. Signed-off-by: David Howells cc: Eric Van Hensbergen cc: Latchesar Ionkov cc: Dominique Martinet cc: Christian Schoenebeck cc: Matthew Wilcox cc: v9fs@lists.linux.dev cc: netfs@lists.linux.dev --- 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 32572982f72e..ca9f504b9daf 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -262,6 +262,7 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses, inode->i_rdev = rdev; simple_inode_init_ts(inode); inode->i_mapping->a_ops = &v9fs_addr_operations; + mapping_set_large_folios(inode->i_mapping); inode->i_private = NULL; switch (mode & S_IFMT) {