Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp305321lqp; Wed, 12 Jun 2024 02:02:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLWjU1nye29u1V0Tbeq9kgPKO36lovGfWq3yAmKfqwpMIf4DfaVRWZGfELQHPoSwha6xeFchQQKPl58tOcH42vPnaLzhtob96CDla80Q== X-Google-Smtp-Source: AGHT+IE0iHgYzmO0eT29GvASN4Jq7Q1cifjHT61BVOOz1IhG01g2FcLLvnnJAc1EI/5fHmt/Xaqz X-Received: by 2002:a17:906:2b9a:b0:a6f:18ed:254f with SMTP id a640c23a62f3a-a6f47d56f0cmr78997066b.58.1718182961305; Wed, 12 Jun 2024 02:02:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718182961; cv=pass; d=google.com; s=arc-20160816; b=X9VdIkD4vytgiI9yYH7iyvA2iZTO33gMB8VdIAsoz6WYD9q+gcDto1Exrm/cqnLRIy FqxZKmunCtujGaCHSxEnqlWmvunj6S9lyR0rTJfBHQUQpHZm67ddQDhFm8d+Djig+1E6 /BBzdt9pVedAzVuwugUVeqJoy/CJFz4q0gur5la07EIj+0exdt29qiS6lhH6yZPSXkO1 7F8RUXvV3R10Odv4aTNmOo07A/Y5wZtu+tdovMISukd5LbX35ZoFj/TrhXFMX8hf0+Y7 w3eB8qEBKqmfFI0/YvitibIxMQyKr209jpCEjUR0g20uQ5ZZ8FCOBj5F3NcOFzFj0vSy OC2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=QgnupSr7JN0O/SnxpxC6VKWoGAn2LYNz0M7AGvgMP+8=; fh=MMLiSFb5H63L76FDEaeG9/rW9CzEJztgQWkH+RWvt5I=; b=C7o5Nfdc8PyAim/R8Z/9T0S0EMDptplPj39kY5F2W9B4i8/dbI+JpXbehgpC+ouaGA Og6ah9+LKeaQbLOy6XXgblspuZZOhYQvZhdPII9Rl/0gC2KpclcgueKn02BJJeWdrOjn /QHhyAu2LP0iPT7RVIvIDsROsDjd/F9lwx0SIeibnmrDAi9FytPiy5uefZ4g+aElRFlI jXIMZ3UfgE79HfvgRe++jRRqqxQw10vEUcPXi806VN+Ko7AF4qjo3AANJF6tY4f30+6Z mvCnrzpG3DgPRcyx3QgjJiay2VreLTzxUdaYGjs6aWkaSVmcTzoxTzivYWPkje+OGhLB UDtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rj67ICHG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rj67ICHG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-211229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae1f956bsi6719051a12.323.2024.06.12.02.02.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rj67ICHG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rj67ICHG; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-211229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 D1C4D1F26615 for ; Wed, 12 Jun 2024 09:02:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABCC316D9C2; Wed, 12 Jun 2024 09:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Rj67ICHG"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="xkGj66aV"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Rj67ICHG"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="xkGj66aV" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 524301649DB; Wed, 12 Jun 2024 09:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718182942; cv=none; b=MHXJCasfJVqutqcvKBzfa3+k+VMmQ2nsoPVFF7izI891q5F1E6seKGH4R3/WS19yEnX/p2BdsKyznaC2qA3TF6Sl7wXPPwmyLQce4mLCD+xM4smeOiOV/7BxnDuj3ctS5BUPUpVl0A/te4e0MycYPdGaGvp82op+qiNmx2EZaGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718182942; c=relaxed/simple; bh=ibRKaobz/UZqwGXKbA61Jc6xXyGO1MvILukPLB6kjm8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l3C6vioQMKBI1TeFIK5itlo58j8euY0G9EUZtbF/o+841yCC495WHJ9nhT0/tywNKTEOQEXzmvhD4lEZdUqWgEJuz4DNxaHHufNAZuSgv2aj7DLcEPgVc7TV9sAd08vvHmRo8IRcf+Wffgiy0+6KAsZAT0O7AKmnqgyXz9swDus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Rj67ICHG; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=xkGj66aV; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Rj67ICHG; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=xkGj66aV; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 smtp-out1.suse.de (Postfix) with ESMTPS id 9CF56341E4; Wed, 12 Jun 2024 09:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718182939; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QgnupSr7JN0O/SnxpxC6VKWoGAn2LYNz0M7AGvgMP+8=; b=Rj67ICHGQtiLmUwvEtdOPuvwEXeqGL9zSJVspfXfvf/t6yLtLiBbiaBsz5DdqLdWK3ZgMU 8CLYGd9vGYx4HT/i1cdVptHQmK761cnmTjEsAjxASkI+2P8wMBJX8dFhSwgMqfPCjirR+t CLwKtid0C8IuL/ogkOtI1kKXaZHjFrg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718182939; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QgnupSr7JN0O/SnxpxC6VKWoGAn2LYNz0M7AGvgMP+8=; b=xkGj66aV2iNTyFZRAodcfIWjwWUp2Lfshajv+4qTqjt2LuPuUsfO0AGGrZhe76Cp1WjtQk JTaUbdoUAepaW+AQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=Rj67ICHG; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=xkGj66aV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718182939; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QgnupSr7JN0O/SnxpxC6VKWoGAn2LYNz0M7AGvgMP+8=; b=Rj67ICHGQtiLmUwvEtdOPuvwEXeqGL9zSJVspfXfvf/t6yLtLiBbiaBsz5DdqLdWK3ZgMU 8CLYGd9vGYx4HT/i1cdVptHQmK761cnmTjEsAjxASkI+2P8wMBJX8dFhSwgMqfPCjirR+t CLwKtid0C8IuL/ogkOtI1kKXaZHjFrg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718182939; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QgnupSr7JN0O/SnxpxC6VKWoGAn2LYNz0M7AGvgMP+8=; b=xkGj66aV2iNTyFZRAodcfIWjwWUp2Lfshajv+4qTqjt2LuPuUsfO0AGGrZhe76Cp1WjtQk JTaUbdoUAepaW+AQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 657C0137DF; Wed, 12 Jun 2024 09:02:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id L20dGBtkaWaVZgAAD6G6ig (envelope-from ); Wed, 12 Jun 2024 09:02:19 +0000 Message-ID: <5a6335a6-80b8-4874-b526-a88269f8879f@suse.de> Date: Wed, 12 Jun 2024 11:02:19 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 05/11] mm: split a folio in minimum folio order chunks To: "Pankaj Raghav (Samsung)" , david@fromorbit.com, djwong@kernel.org, chandan.babu@oracle.com, brauner@kernel.org, akpm@linux-foundation.org, willy@infradead.org Cc: mcgrof@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, yang@os.amperecomputing.com, Zi Yan , linux-xfs@vger.kernel.org, p.raghav@samsung.com, linux-fsdevel@vger.kernel.org, hch@lst.de, gost.dev@samsung.com, cl@os.amperecomputing.com, john.g.garry@oracle.com References: <20240607145902.1137853-1-kernel@pankajraghav.com> <20240607145902.1137853-6-kernel@pankajraghav.com> Content-Language: en-US From: Hannes Reinecke In-Reply-To: <20240607145902.1137853-6-kernel@pankajraghav.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.50 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MX_GOOD(-0.01)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWELVE(0.00)[19]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVRCPT(0.00)[sent.com]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[kernel.org,kvack.org,vger.kernel.org,os.amperecomputing.com,sent.com,samsung.com,lst.de,oracle.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,suse.de:dkim]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: 9CF56341E4 X-Spam-Flag: NO X-Spam-Score: -4.50 X-Spam-Level: On 6/7/24 16:58, Pankaj Raghav (Samsung) wrote: > From: Luis Chamberlain > > split_folio() and split_folio_to_list() assume order 0, to support > minorder for non-anonymous folios, we must expand these to check the > folio mapping order and use that. > > Set new_order to be at least minimum folio order if it is set in > split_huge_page_to_list() so that we can maintain minimum folio order > requirement in the page cache. > > Update the debugfs write files used for testing to ensure the order > is respected as well. We simply enforce the min order when a file > mapping is used. > > Signed-off-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > include/linux/huge_mm.h | 14 ++++++++--- > mm/huge_memory.c | 55 ++++++++++++++++++++++++++++++++++++++--- > 2 files changed, 61 insertions(+), 8 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich