Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3461707pxb; Mon, 1 Nov 2021 14:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZRGJIQ/cTJf9LrOKJCw1Zs6XhsARQt6NUit2IgvycYBv5UCkOPoNTowstJbV20uupasJQ X-Received: by 2002:a02:cb42:: with SMTP id k2mr9969644jap.25.1635801517960; Mon, 01 Nov 2021 14:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635801517; cv=none; d=google.com; s=arc-20160816; b=O5K++L8EswQpO8e2Ua/bxJ0gnGIIPpDaqL45POY6gMyUVtOCTUBJ8NFDlWzYj/fBkc wgZcrsq0SZK6HfTTtfpDa2JUpGuTzlckbWqaoNaq0TaG2+HtrBHdTOS+0AO39AmMyozw 0c+2efs7wGb1Hb7u2Dkmy3Qts8B0gnWXCAsJ7Di22vaAohUKLL2J46RbZFliKzfTPIxD rhriB61+hNNYJ//sxGOv2GXYgMw4NhklOXN0miOvVvQR9AX+UgBOlBhey5nrBcVweDPy i5eZSbqTaNm/6c5P++Elu0aN10ish5nYJxPk0SxMcYiK1V5lp0cFnQE9jwmolYD9fWlK H+Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bx+F5BQFecP5/NIWNml8fMZvcj9H0D34Vhk0T/k/6XM=; b=ESA7ugZPhUy1JwmZLFFF7lf+L4jzTmJfrnmAJDHBGS67Ted570TTiCBN/4Sm6GxYvX 1IkRSxOagAIrcWXVcO+eJD06Db8U1PvwSYb4rhAv7OPIZhsVTbaRwUO+r+mjBXAqVtrd ++gKhRclGjJviaOAYsSFtwJDVDmzj2BVkHec09DMjoJvrt3pMH277gvEjzPKTbMca5Dh ScIkqS7yrIXjXyR/bzhv/fetbHCsV481cET3jWRUTsj4uEt0CCMXSEJl70ZXQTecGZ7b KynnYQi3y4ed1F402xziHEwu4K6gugPw0n+O0mag3g0b7R+XAogZm+gds2r9pjMbCX+R CNVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=RBGype5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si12474710iow.105.2021.11.01.14.18.26; Mon, 01 Nov 2021 14:18:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=RBGype5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbhKAVTj (ORCPT + 99 others); Mon, 1 Nov 2021 17:19:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbhKAVTY (ORCPT ); Mon, 1 Nov 2021 17:19:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 017D2C061764; Mon, 1 Nov 2021 14:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Bx+F5BQFecP5/NIWNml8fMZvcj9H0D34Vhk0T/k/6XM=; b=RBGype5dL/KUTb42oGbk83TvcN v9X1Sn8Egxcei3h6+KPQRFLl7g9XJN367O57EQCQZSKsaCCww6zgPqyhwQZtj1vWCteybSrwgD25Q fsxpaLfy+zZYjbnrvD3u7DBrs6NglGeq6tllKQJRLCvYMjgoxN44sqC/Z3KnZxK+nyjspYboD7rJO UvZ2qJD7WACcIypeDdLbWl2dtdQGSkFZew3uLd4Z5Zt0w7bQNV/q405uxiJ8rEjMPw61eUtEWWBi5 z6r2W5AjE+jawnJBTk48yrb9g8f0doyey7BUk1X/qcmm7/jYExH+bZAR/BQPUbdMj1imX8ylH1SSK U9EwOSSg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhecd-004247-WF; Mon, 01 Nov 2021 21:14:00 +0000 From: "Matthew Wilcox (Oracle)" To: "Darrick J. Wong" Cc: "Matthew Wilcox (Oracle)" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig Subject: [PATCH 21/21] xfs: Support multi-page folios Date: Mon, 1 Nov 2021 20:39:29 +0000 Message-Id: <20211101203929.954622-22-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211101203929.954622-1-willy@infradead.org> References: <20211101203929.954622-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that iomap has been converted, XFS is multi-page folio safe. Indicate to the VFS that it can now create multi-page folios for XFS. Signed-off-by: Matthew Wilcox (Oracle) --- fs/xfs/xfs_icache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index f2210d927481..804507c82455 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -87,6 +87,7 @@ xfs_inode_alloc( /* VFS doesn't initialise i_mode or i_state! */ VFS_I(ip)->i_mode = 0; VFS_I(ip)->i_state = 0; + mapping_set_large_folios(VFS_I(ip)->i_mapping); XFS_STATS_INC(mp, vn_active); ASSERT(atomic_read(&ip->i_pincount) == 0); @@ -336,6 +337,7 @@ xfs_reinit_inode( inode->i_rdev = dev; inode->i_uid = uid; inode->i_gid = gid; + mapping_set_large_folios(inode->i_mapping); return error; } -- 2.33.0