Message ID | 20240226094936.2677493-10-kernel@pankajraghav.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 2343EC54E49 for <linux-mm@archiver.kernel.org>; Mon, 26 Feb 2024 09:50:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ABF82940023; Mon, 26 Feb 2024 04:50:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A6EAF940014; Mon, 26 Feb 2024 04:50:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 90FDF940023; Mon, 26 Feb 2024 04:50:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7DBD3940014 for <linux-mm@kvack.org>; Mon, 26 Feb 2024 04:50:26 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4E3CF12072C for <linux-mm@kvack.org>; Mon, 26 Feb 2024 09:50:26 +0000 (UTC) X-FDA: 81833484852.23.A2CC804 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by imf01.hostedemail.com (Postfix) with ESMTP id C1F6740003 for <linux-mm@kvack.org>; Mon, 26 Feb 2024 09:50:24 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=pankajraghav.com header.s=MBO0001 header.b=lioYz3tH; spf=pass (imf01.hostedemail.com: domain of me@pankajraghav.com designates 80.241.56.151 as permitted sender) smtp.mailfrom=me@pankajraghav.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708941025; 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=F3Xg5bE7lOUEiWrLgvJkawBGempm7FqinU/8gfujPB8=; b=Fl7mX8C4ri2H42Z4qaknARYN/YfsohHzVNywwjt6F6x0kkAlqOsL2XWFNamL/kpMWGfDCa nC87OFduNTBZpKvsF9IJ0s/Zg9pe5QK5NTg9wEitNCY7Ip4wTApDrXJW1DzV6HRo6lkn5p BPskb/YMx19qgdr2f2/YgLTC/MNZdfA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708941025; a=rsa-sha256; cv=none; b=ejzoJ7NllI+i9xzIfzXF65Lci8Upc9gFswTR7+HWblum9uyTynycYAIWYLYdt/MKPeocDj PSd8oVMyoxIfuvQjKFZ/HmAt1nKC8ZXUrY5eMLdyaTYnYfvuIOJ9hHQcFGY0EfKd7SFmqa DbLrqE8mU+B2myvYCviyoIbGklJPLdE= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=pankajraghav.com header.s=MBO0001 header.b=lioYz3tH; spf=pass (imf01.hostedemail.com: domain of me@pankajraghav.com designates 80.241.56.151 as permitted sender) smtp.mailfrom=me@pankajraghav.com; dmarc=none Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4TjwpP5mYxz9sTv; Mon, 26 Feb 2024 10:50:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1708941021; 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=F3Xg5bE7lOUEiWrLgvJkawBGempm7FqinU/8gfujPB8=; b=lioYz3tHK8mjB7lKM1lOktEID4fLFlKa66xI9EIqMo9+mkBUeo8GueQEQuC6zRm8ZamQP7 YK5fiGlW4NBkooEUgInJLZGSECi/OX9C9RUl0wh7Uw+csnMhp4o1l1O/k7whwdYIjgCop2 G84nRQMuLf03YLlcgRix64u5MIviQ4C/cbo97lzDga4/0uiYD16VdRZByvCGW9ojfUJhEw ZfZvn0h4fRtSSxdNeA2wX+DyJIue/KNcckCgmlUXE54kwz+qVZKW26w+EIO37eSWQ2RTTj VvnAkngviyrXkfpus7MhYeIbM9ltg0nQQ8kub4GjpwHQPENVApoQGJJDkw8Q4w== From: "Pankaj Raghav (Samsung)" <kernel@pankajraghav.com> To: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, david@fromorbit.com, chandan.babu@oracle.com, akpm@linux-foundation.org, mcgrof@kernel.org, ziy@nvidia.com, hare@suse.de, djwong@kernel.org, gost.dev@samsung.com, linux-mm@kvack.org, willy@infradead.org, Pankaj Raghav <p.raghav@samsung.com> Subject: [PATCH 09/13] mm: do not split a folio if it has minimum folio order requirement Date: Mon, 26 Feb 2024 10:49:32 +0100 Message-ID: <20240226094936.2677493-10-kernel@pankajraghav.com> In-Reply-To: <20240226094936.2677493-1-kernel@pankajraghav.com> References: <20240226094936.2677493-1-kernel@pankajraghav.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C1F6740003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 5ywg13yk45u7b4q63p17nr81hxagrj7r X-HE-Tag: 1708941024-215152 X-HE-Meta: U2FsdGVkX18CRIslwmmwKYth2RE0CHtCrDfpasdx/q77D06PSm27y/MUIkQdt5xDXbdiAJ7Sh2POV2PzqX2SP8K1RqQWcvshrN4nmfcbkizCwbzvHXGAzXF7z7HzIb053ApkAzKo6Ren6rbRnFauoAD16DrhI2hXvP2EKkYRnO1lbK2Ui5ZLAuSBWE19N8E5pz1GIQtY6qN/jxfR9E623ipYKqq630O9PRAZBlZMaHtHTAccAq77+09AE0+wsYa1X+G3HFQeeQbTfC1OkWO49yRlhMFxpZthibc+gEf7ar5Qo9gtYSh2Hi/H89Ur+yYf3JcUO4583+aAsTRLpkLoPLSpJp4joSJJNfAEHx5+jWpJVWrGMT8oPu//GKW9XYu6MQuQTrjjpCLbsOxrhHcqKNrW3dUVRWg4P4eYyib+ecllKXubhSkj1xoIVnRfpEJ9XOL7N/6doedHxgjIoDWSZa69jB11WBS6THyHVVmxjw19j5ocwRB93C1I5u2wKSeW8E8JGZcIl/WWV/P8LP+0uBniKyeTOe2fT6uR2go4bqfELsfg9mImIA3y0XY9j9GaBn1XpMAhXlXapbMUS9KK3O7VwEJVZ4YtD2FnEnF957Qn9sW6x/6s3VNgUcdPG2zqNiTRXdhdboVZ7StC4Mx29ir0w7lW9fwWpAV/+vuqOkoNHU0BoM6Hv/GaTBXcbVE4Qedjec73/u0M/618XctitHsJfiJjBipPR8km/PeLK4mHuIK0YvMSTwAgpQZdQna+nerd169BeDG6tEIb1pwd3yrTm1i/ZqLv4K5Df7lcNBD08IdG1s+aunXCjOmEVTES8ZsIWLbJ18vGc8Q907+h+oLwhjAHKU9jMwWwcn7Lq9cre60bq1py/stz+5fgcWTE6i43vdAngyC6sGI1peVxrPpDFo+Sdbc5QGjWjppvMjKIdVbndEVypMdahJEb8fZGCuTvsKU7Zhcbs9xr2oQ OLO24yew 1JcfETnKr/T1E1/AiQ4rzIRKU6nU/P8H/tD/h41S6xVi7FXOUv2HpcwP/BS5laJGFCto2 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 |
enable bs > ps in XFS
|
expand
|
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 81fd1ba57088..6ec3417638a1 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -3030,6 +3030,19 @@ int split_huge_page_to_list(struct page *page, struct list_head *list) goto out; } + /* + * Do not split if mapping has minimum folio order + * requirement. + * + * XXX: Once we have support for splitting to any lower + * folio order, then it could be split based on the + * min_folio_order. + */ + if (mapping_min_folio_order(mapping)) { + ret = -EAGAIN; + goto out; + } + gfp = current_gfp_context(mapping_gfp_mask(mapping) & GFP_RECLAIM_MASK);