Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2067439lqa; Tue, 30 Apr 2024 07:24:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcY+c5mwUnh9EScB1TQHiAEDeGXTUUFblwV2qLaqPNyLyx+3Fh3cpbWPtYj3JuT4+WdQJGtvkJbcjA5HSZ3uud8iKJInRTQEgPRfApPw== X-Google-Smtp-Source: AGHT+IElNs1AiWtUlOzmpb9odh0FA2PAt/CrkgCLn96XugAgo8wFZMSwJ4EbENgCsubsiy7Ieaau X-Received: by 2002:a17:906:164a:b0:a56:62ed:c33d with SMTP id n10-20020a170906164a00b00a5662edc33dmr10771042ejd.62.1714487073746; Tue, 30 Apr 2024 07:24:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714487073; cv=pass; d=google.com; s=arc-20160816; b=ZHLMlfuVs6NpFk0ChqOdy/bcVfMmJwY5ta3u9H8rjPJwDJvCXOEPNA5Y6O3mfPLpWT y7/hPprI6oIvHOe5Lv/DigAFv0aThmhE6GZjNl2eD6isJA4BmCsBGaBg8OT/gOeoRTmD fNKit0fQLwZafEbThUX9IxlSxFF+oxieR6I7bDBZn5joAwEWIFeGkgIUJpOt9x8FExeY BYnM1HK1Ax79sVGr7WgVfIxhh2I6BsZDniInLaGEGOHE706bIqIa/U2v5CwIbovfwW8U T7lNgt6JMp8nqtdbEdN9fGKIBhd/e/GEHidgjLSmwDvxrWUZxZioGfCJu8apXTrjStnU MAGw== 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=LecQUVGvecJLTuG1l1rChvgN6KTtzp5XXcuKsom4sxQ=; fh=YE7ofT3RvMl8X7BAHep3VPXZdXRMpsNOuSwI9MYxxVI=; b=R90NSMcVhuunBhIh4E4tWPlKxpKzUG8pucD3LU6ehfX7zJ6O2nXX9Lu8XpxonYMwfY P1MRpzmpM0JmMFFFYXtLXxSnPh6K+JP4IM/PQY6MnCbEgT9ZFzc7zZn1K25+fULQwkil PgA8hhxUA1sbQARxUbCfJke3j8+bDOLkvSQeiJcqIjqjsdw9efW7h+XAp9WgK1Ia3k5x jOtFkjuFx34BwqeuLYzbxgp2EjJaitpMljBflQYxLnI/elNOrSDrA3LSRJETxh2zszd/ dFRhf1B9MjzoF+g/eeS2Z81FxBViU+qXY7gWTdlpSXoUo++/9b/7capY2/mKRnqFoSLf MCWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cwjQn45H; 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-164114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id he30-20020a1709073d9e00b00a55ba085a11si11623836ejc.638.2024.04.30.07.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:24:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cwjQn45H; 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-164114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164114-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7A3C71F218B6 for ; Tue, 30 Apr 2024 14:24:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B3DF14373E; Tue, 30 Apr 2024 14:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cwjQn45H" 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 42CF11A38F6 for ; Tue, 30 Apr 2024 14:10:23 +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=1714486225; cv=none; b=TBZtyu2fs2Aall70CPMBJj/93pmKrbvod0EEf8FQ4nDyePIgqrxbQGyyLT1+WJoDc1BKJvrhQuwlot6h91k9nMvzVQ8RzzD/z7YF+DBFh8+ELj2FHoOdOXQ2p546kgLL/PSuiVtpVBSxsg2METrpv79RuvZpdaumW5SWE2+faCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714486225; c=relaxed/simple; bh=vz+YfblBo3QfOpwB1FPiUkicsoKm3SMVqbFyMUKkCFs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ivdpgc5m8Ki/3jpk7sdtheRp9hJAGeyJuNOMe8pNQQGaGUoknJbFhApcxQnLIJYCfytCK7N6g509dHjOtl5A88nWe6ZxEWTt6Lq7Y67iJ55rqPul+1inDJ9RlRanjiB8iqCml0gtF8sqvaPjX3MFHNHUwhjr/2DKXLJ8+KFC0Uc= 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=cwjQn45H; 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=1714486222; 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=LecQUVGvecJLTuG1l1rChvgN6KTtzp5XXcuKsom4sxQ=; b=cwjQn45HUDaGx4vhB3hG83csv4mws6JkRGBDef9+EZXNtuPpySw+Spfd2cwwkFEOW/WIC+ NBpjkBwV+bwXZyBQic/uzip+eUpGV/XBlF5QlMO5MpZTYkwBbMSWI2zgOK6Sy6rEt0yYZK OnxVqIG27JzLUSOORjQ+30i1IUAT37U= 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-530-nTjp26d8MHqPkKdHzOK-3w-1; Tue, 30 Apr 2024 10:10:18 -0400 X-MC-Unique: nTjp26d8MHqPkKdHzOK-3w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 CE7CE38000A9; Tue, 30 Apr 2024 14:10:16 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0DF4F1C06700; Tue, 30 Apr 2024 14:10:14 +0000 (UTC) From: David Howells To: Steve French Cc: David Howells , Jeff Layton , Matthew Wilcox , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Christian Brauner , netfs@lists.linux.dev, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Steve French , Shyam Prasad N , Rohith Surabattula Subject: [PATCH v7 16/16] cifs: Enable large folio support Date: Tue, 30 Apr 2024 15:09:28 +0100 Message-ID: <20240430140930.262762-17-dhowells@redhat.com> In-Reply-To: <20240430140930.262762-1-dhowells@redhat.com> References: <20240430140930.262762-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.7 Now that cifs is using netfslib for its VM interaction, it only sees I/O in terms of iov_iter iterators and does not see pages or folios. This makes large multipage folios transparent to cifs and so we can turn on multipage folios on regular files. Signed-off-by: David Howells cc: Steve French cc: Shyam Prasad N cc: Rohith Surabattula cc: Jeff Layton cc: linux-cifs@vger.kernel.org cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- fs/smb/client/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c index 5239c823de86..e8bfeea23660 100644 --- a/fs/smb/client/inode.c +++ b/fs/smb/client/inode.c @@ -72,6 +72,7 @@ static void cifs_set_ops(struct inode *inode) inode->i_data.a_ops = &cifs_addr_ops_smallbuf; else inode->i_data.a_ops = &cifs_addr_ops; + mapping_set_large_folios(inode->i_mapping); break; case S_IFDIR: if (IS_AUTOMOUNT(inode)) {