Message ID | 20240430140930.262762-17-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 21F59C4345F for <linux-mm@archiver.kernel.org>; Tue, 30 Apr 2024 14:10:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3EE7B6B00E1; Tue, 30 Apr 2024 10:10:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3770C6B00E2; Tue, 30 Apr 2024 10:10:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 17C126B00E3; Tue, 30 Apr 2024 10:10:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id DEFC96B00E1 for <linux-mm@kvack.org>; Tue, 30 Apr 2024 10:10:24 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9B1F41606B2 for <linux-mm@kvack.org>; Tue, 30 Apr 2024 14:10:24 +0000 (UTC) X-FDA: 82066383168.01.A8423B5 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf14.hostedemail.com (Postfix) with ESMTP id DF92110001F for <linux-mm@kvack.org>; Tue, 30 Apr 2024 14:10:22 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cwjQn45H; spf=pass (imf14.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714486222; a=rsa-sha256; cv=none; b=J9ZqFZg3+HCDTu0IXi/SGi5R8Jia2PfwBT2PPRTpp4SDzahmYEVu8Uv6QXfGaE82fgyrSl 2111VQ2b47LlaoIlCutpdFfim7akHg7LqwymKOwEm00dX4pkuL2KSI7zxMLhSH//U3gHas unqh7S7CWuxB/xZcSJOa05H6ERKrqGw= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cwjQn45H; spf=pass (imf14.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714486222; 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=LecQUVGvecJLTuG1l1rChvgN6KTtzp5XXcuKsom4sxQ=; b=3T6sncobeBev/QB6g6VWBuGJAVDmkEcLM9014EQAECPEBbQRfQmhUXuQk1Q9aIRyd67Vkg QObUTwt/ySv7IsvPEH6DaTgZbTrfTsHx+fCxu11+EPdUTlzuXVbZWvVdOq99vzOdhhhq4h thkgXMiMO8p+ZzVUHdGpJKlbBW3dtHU= 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 <dhowells@redhat.com> To: Steve French <smfrench@gmail.com> Cc: David Howells <dhowells@redhat.com>, Jeff Layton <jlayton@kernel.org>, Matthew Wilcox <willy@infradead.org>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Christian Brauner <christian@brauner.io>, 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 <sfrench@samba.org>, Shyam Prasad N <nspmangalore@gmail.com>, Rohith Surabattula <rohiths.msft@gmail.com> 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Stat-Signature: 5njmffqhkm83tgs9rzk9mhy3daizfapf X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: DF92110001F X-HE-Tag: 1714486222-503985 X-HE-Meta: U2FsdGVkX1/5rT/u5p21gZcJ9JegQls8oj/TV+ibTm9DfQ1eexLI9Os6Sj9FrOVSj6dwmPzLqGnF8AugwVsCoc25Kv4eR5lhGrsAHRkE1cS4aBiuMiGWzd4n0ENPCXh5B9WBWMe/xBgw7pR8Z5Z1ca/Ko9qS3e75tmetv4t+w3Fi5a9ozMJ/ac22ZE0Q/mL0KRbwzqizXXHJDTrAVbx5dTOeDxkGWSehMOCINbLLwmf2rMT8P3KB0OaCpHU1bBUcK++lQmB9cj0nL9nObATy+T2oc66lczGHuWYR+2piWdkj5e9t3mI1pMh674GLgfBF3c35kQJcKRT7OAWVdXG18n0MkG71LFarYayc7Vf+uTAntNc2EprPMmYytwmEmv15jT9p0gIWndxt9TIgWyz5Ms8vKgXCptDs+7oxmby8yersAo5k70J4w0MEk42nqKsaMcG3xc7oGYrYvgyyJTNQ54wLEPWzP3/BFBfgKas88xadelcEmIiY1KbW7KHonPOoncCh4F0er9xpVwXaCnozjyoWcTDT70tdiTE0hNFaX5eR18ZKPXd0p4th2ep6ymTCpBBcw1MR9xPFJciWfeqwVZsOiZLfJuXHA5PQmsaNTFL2FnzKYeuanujUE70Ck1q+xz0L4NU27G4zOSOObyUR27x8VBNHEmTKq+2SCMEDyALq//yD/F3M3mlEy9lfFYyuC/lWMnzkLdCFv3Ej3N7PQctgF8bbi/V/NUaZYQdzw8rLtYQpGUHzs6diZjVuH2jqU/TjZ+89CfeyGIflQ2ZbuJmEuvj/RADLrUHngteBACAHqir5pskmxVj4jRWLWzOklkhouWrRzfaM/amE2tth4QOhzz60qC+e4nagevW79oXkQ1wODkypzdsLoB7CMSk4hcyZErCije1Xuu719h4u14B+taYUd+Hc35GipQsdhoEJ7wABNITqLepj0lZVio8iFun4N33AC66cGBxXgZs YNJApIDI 6NTnJOcKgjwvOfnlBooS1XqsYeJAYFYF1Roak/9/gaWekt6H/oS73WfIzx09YppjiGfU867NttkMX68z6REmWKHgIJMj8fLLgQcbdtVvvlFjtoxCS6HTxACiXO1LYW5U1+AEZDefgNIYtCylwWXZsr8oDA1b7hGnnbZl5CIfFq9MohB/pZQ4uK1t+SDdJeYFdOvVUE1epfNBBGIxVOGgmpS3Fi4DCwpkL1Wto23Pa7hYkcVCqnkqTR8J7aTbO0uhTyzEoQQGnpzeWfcpA2vWDzYhSlGqGJuMaSfx61Bg8r9xaomkgdykiFiRMV4tMUoeAqM0CWDdT0KAFclXmfde+m4rMVyg2nQSswPAj1xiPFrAx0EEBobK+sbueF3R9fnXR4PORSpPUGjJ2QaQrRWJS4SoE8E0n6T2vQsfqsuCjUBV26+HrAGuQNoipSRJej59yZ675 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
netfs, cifs: Delegate high-level I/O to netfslib
|
expand
|
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)) {
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 <dhowells@redhat.com> cc: Steve French <sfrench@samba.org> cc: Shyam Prasad N <nspmangalore@gmail.com> cc: Rohith Surabattula <rohiths.msft@gmail.com> cc: Jeff Layton <jlayton@kernel.org> 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(+)