From patchwork Wed Apr 24 22:54:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 13642591 Return-Path: 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 4CFB5C19F4E for ; Wed, 24 Apr 2024 22:54:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D1B256B008A; Wed, 24 Apr 2024 18:54:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CF1FA6B0085; Wed, 24 Apr 2024 18:54:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B454C6B0092; Wed, 24 Apr 2024 18:54:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 957536B0085 for ; Wed, 24 Apr 2024 18:54:54 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 29A191A114D for ; Wed, 24 Apr 2024 22:54:54 +0000 (UTC) X-FDA: 82045932108.19.C2C57E5 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf20.hostedemail.com (Postfix) with ESMTP id 2208F1C0004 for ; Wed, 24 Apr 2024 22:54:51 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=eCj4iiRu; spf=none (imf20.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713999292; h=from:from:sender: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:references:dkim-signature; bh=qhV20ebwyjVS9ZmsvftKQpBJifJwQvLD1zjgUNQjXno=; b=BADpg8lrVTVUlzoAuC+dStXqSmbP8rJeC+99fpz5Z1A6IHiu6hN//J9dnhy0H+Sx0akrzu hBOJm7q4tFELgj7LEjyhTdJrFFFHFIadqdNx+Y6Z03GSpwRT3ZjNKbhiimx3LpD1iCcb1X 6UU0Cy9Js7E4mPREyyKVOjn1VIqcEic= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713999292; a=rsa-sha256; cv=none; b=e8x21oWIp0SlHSqO9rTCb99wqRHiuyE/3xr6i2lrjwiGJElW1UqmJvvgja93S0z3VPnKXd baWZKvwEKPdVVnz6LDDGUubPc5bKt64iycZY7DRBRskAps17tn8LwTtA7wkpXNUBfPNElS f6QjexegNUj0EJ1DNdi143AXgdMDWTo= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=eCj4iiRu; spf=none (imf20.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=qhV20ebwyjVS9ZmsvftKQpBJifJwQvLD1zjgUNQjXno=; b=eCj4iiRuMnaF7BjOuB048sOqBK b0pf9KuMzqPwbLvEttEdI5I7j8RuQlZl3w4UUFJo6dpycXfEhwNFaDbwGJm7M4nw5PncuzhzqGr/z 90QOa2VOJbdupbJ8cR6jxjjwexzdayhLmK7k0KenLUDxSE7FLyNB5qtuBiOKQlOhy9V575o5o3fP5 zkcTTK1h4PNr4CQa9zxEK2OzDsEkNbXxwu0fUgeHZDxiT3Zz/C1JBZQawoCSDiEqVxa0cNb37tn/8 f2mQfx0NPHs1jFKV3D2daBLkJwvv9GSpaycjHnUtAfm9EGri+7f6dL0997Q6As40dj81DThDf8GDN F13nkQpw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzlVq-00000006HlS-0TnN; Wed, 24 Apr 2024 22:54:50 +0000 From: Luis Chamberlain To: akpm@linux-foundation.org, ziy@nvidia.com, linux-mm@kvack.org Cc: fstests@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org, hare@suse.de, john.g.garry@oracle.com, p.raghav@samsung.com, da.gomez@samsung.com, mcgrof@kernel.org Subject: [PATCH 0/2] mm/huge_memory: couple fixes and one cleanup Date: Wed, 24 Apr 2024 15:54:47 -0700 Message-ID: <20240424225449.1498244-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Stat-Signature: kewdtsaii5if63bezb6umqf9h914kpqz X-Rspamd-Queue-Id: 2208F1C0004 X-Rspamd-Server: rspam06 X-Rspam-User: X-HE-Tag: 1713999291-976883 X-HE-Meta: U2FsdGVkX1+HhrlfQkp01CorQPH8sUep9N3QSgQiwg/7RNhblqmaEYmU00KdOIsGh+oYfZ4AmOXER+ivHVfcVZrZK98Kr4eOepFCpnrRmnOwEmtu8iO+wR6Iph/EU4y3tcz+Dcm+7PmgT1Vl0GhGBzT/rtZBGuSVvHP9W6wZoC7qVhIyuiUEgRmV2sKhJKsrvHcqkGxWwO65kSw7uYkzMwUU2/1dt1cX2gJieo+Z0UWRCthOqV8Gj9pzs51bF3ykpflz/t3SUnvBbJTzttt5Hlv+1m90PXue68wDzG1K96AT0oeT2tgOg0e8tcNA9lrem5u2CbvQwapXgn1iehVDl2PPh5ykFQV5dW75Ch9gboJgSBzsyBnELPWZGM8bcy8hd7Vyb3BE0ZFEIHLfCK0m5xn1lopfZu4DDnvsNIR0J0Hu5AwUxPyeHEkhS1xibxMFJbZWIDW25rUjbTDCDvV7Hhk8tgbLeIiksfJGfRvypgH8ac2VXBE3CFT6d5lbCBxZsoFzgK27EUgDjDITi4QNjKEkTeqn8h9e1RL/+QgP6tSpsaEvdqpA6VOFe0QpvsIVJokIf5gQzbv/itQPNi3rwSPKWFNt0eA+tg+vWkaoRcrQoirIE9C6p0f4T6ggJmva6FsbHB5SqK35e4Bbq7/MmoZ7+zF7g4ZoAXfMieosJIaMD7xhFeyymi3vLcQkQctFnNdKAH0R6HTjpBFCi9fE0ud9DJd7fcafuzJPuglTHGVCxmkxtuX8cc4IdNstNrUJLDlrlnQDAN8oa0FJUu2GEUbOS/771bgwqCwhOsoc1TikmbpJNbOAk0j4WfTiNZQeVCFh+F1aTBsvByJ3VGPbfC/7ybbCXwSP5dOLivWB7htGlRAefh2Sl7slTW4jzz/ueeMwC76BEJ5WJogA4Od8m/e59HSithDcHZt80dVsubqL2lXDlJD6knxfBlDzllaGCukyoLK/7Lx0j2fvrbE /9wRIsPJ umx3HhiX5LIJdxzUMC0dHCbeGeRXNhRsr4p+fvB/Hjas3akLb/hF+AZCeJmdHU/Fp9pBu3VElrJ6vrgaQnjTWgYPjdhbk511bYbzR+R3cVhEGUtm16Dhl/QflxNpAEU04MQ+t4JXFgSeDROncM2c6jCbK+yE7/zPnthi8 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: List-Subscribe: List-Unsubscribe: I've been stress testing large folio splits using the new debugfs interface with a new fstests test [0], to make the debugfs interface more useful it helps to do bounds checks on input parameters so this fixes two issues found while doing automatic stress testing of the debugfs interface with found files. Provided there are no issues I think this should go in for v6.9-rc6. Also, *should* we strive to support splits for large folios to min order with say MADV_NOHUGEPAGE ? [0] https://lkml.kernel.org/r/20240424224649.1494092-1-mcgrof@kernel.org Luis Chamberlain (2): mm/huge_memory: skip invalid debugfs file entry for folio split mm/huge_memory: cap max length on debugfs file entry folio split mm/huge_memory.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)