From nobody Wed Dec 24 03:14:42 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="So3bh3vq" 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: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 Content-Type: text/plain; charset="utf-8" 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 =3D rdev; simple_inode_init_ts(inode); inode->i_mapping->a_ops =3D &v9fs_addr_operations; + mapping_set_large_folios(inode->i_mapping); inode->i_private =3D NULL; =20 switch (mode & S_IFMT) {