Message ID | 20240301164444.3799288-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 C5E6EC5478C for <linux-mm@archiver.kernel.org>; Fri, 1 Mar 2024 16:45:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2EED2940008; Fri, 1 Mar 2024 11:45:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 29BBF940007; Fri, 1 Mar 2024 11:45:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0F175940008; Fri, 1 Mar 2024 11:45:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id EC4AE940007 for <linux-mm@kvack.org>; Fri, 1 Mar 2024 11:45:23 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id CABADA1CEE for <linux-mm@kvack.org>; Fri, 1 Mar 2024 16:45:23 +0000 (UTC) X-FDA: 81849045726.17.EBB561F Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by imf10.hostedemail.com (Postfix) with ESMTP id 535B4C0005 for <linux-mm@kvack.org>; Fri, 1 Mar 2024 16:45:22 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=pankajraghav.com header.s=MBO0001 header.b=OZmI+l81; dmarc=pass (policy=quarantine) header.from=pankajraghav.com; spf=pass (imf10.hostedemail.com: domain of me@pankajraghav.com designates 80.241.56.172 as permitted sender) smtp.mailfrom=me@pankajraghav.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709311522; 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=AuqCYJv0G4nWFdTvmBsbAplSUMEUCNGCle4WbadC7mv8afE5i3k5Lfdpb7AtNS1xp73fXn fgKy8lJ7kFZjRnGYhFkLoTl5/MgNBJRBKVIe2NQOV3pMLDJef2nXCyjwFUQ9cK9jWxrO+g CJu4Ud/HY7ZefSJ+gB60l/D5c+FwN4g= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=pankajraghav.com header.s=MBO0001 header.b=OZmI+l81; dmarc=pass (policy=quarantine) header.from=pankajraghav.com; spf=pass (imf10.hostedemail.com: domain of me@pankajraghav.com designates 80.241.56.172 as permitted sender) smtp.mailfrom=me@pankajraghav.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709311522; a=rsa-sha256; cv=none; b=N/jSMTQWBtS2FdKMfkH8hxM8Jz22lOQjr0JAgGzjo11+HM5scWC0I4UsXP5KSLVSFfsthB wP3X1S3xIwKP7VVBkraV2YL7f/N4BZVYixItoG9R6Qp0INdDpM1PTKeLdpefOWmyKMBwGY QIXoUSH+pSq+ye/ML3f8cf9W3zwpCHs= Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-202.mailbox.org (Postfix) with ESMTPS id 4TmYqM2l4gz9tW7; Fri, 1 Mar 2024 17:45:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1709311519; 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=OZmI+l81//odOBAskdE4zl6fx7Y7LVheQ+0p8xiXpuBz9P7DZyU0Im1meut9eKMfMmB788 ipb6Wl0H30SzQq2hEQaq4wH35pYRxjMogRPWpnm6QhSPE9TbIn+hTafnbjpS+iJtUnffxl iByU4+WZ1caxuiG+BaPAA2sBfuzOzdtyly45fU418II1VmVRcZPFnjSmTSR7MBN+Bf8Rmy 6xDC4IVUbgGFmFkd1gcKMP/OesDKMF0KZuJoxLbYn2fZzWoMyuXP5Rvy3PNFfH7pRm2kuH C5UnREMrQiygk+CwzFIbQGQ6JDso3LOU+7kPNg4LV/P1QBLntDzO3hfnOUyagg== From: "Pankaj Raghav (Samsung)" <kernel@pankajraghav.com> To: linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org Cc: djwong@kernel.org, mcgrof@kernel.org, linux-mm@kvack.org, hare@suse.de, david@fromorbit.com, akpm@linux-foundation.org, gost.dev@samsung.com, linux-kernel@vger.kernel.org, chandan.babu@oracle.com, willy@infradead.org, Pankaj Raghav <p.raghav@samsung.com> Subject: [PATCH v2 09/13] mm: do not split a folio if it has minimum folio order requirement Date: Fri, 1 Mar 2024 17:44:40 +0100 Message-ID: <20240301164444.3799288-10-kernel@pankajraghav.com> In-Reply-To: <20240301164444.3799288-1-kernel@pankajraghav.com> References: <20240301164444.3799288-1-kernel@pankajraghav.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 535B4C0005 X-Stat-Signature: 96tb7zho1en8gfk8px85c5t1unk59cci X-Rspam-User: X-HE-Tag: 1709311522-926522 X-HE-Meta: U2FsdGVkX1+1tqqM1AuNEiQbGqkuxqDGd9X6oW+pIWCnBGxoguaC1klpGbBD6A2nskYXM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ence: 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);