From patchwork Tue Oct 15 02:02:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nanyong Sun X-Patchwork-Id: 13835667 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 E9C47CFC501 for ; Tue, 15 Oct 2024 02:06:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 762236B00B4; Mon, 14 Oct 2024 22:06:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7138E6B00B5; Mon, 14 Oct 2024 22:06:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 601806B00B6; Mon, 14 Oct 2024 22:06:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 431B06B00B4 for ; Mon, 14 Oct 2024 22:06:08 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7776CA0B09 for ; Tue, 15 Oct 2024 02:05:52 +0000 (UTC) X-FDA: 82674196290.18.4EFDC7F Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf07.hostedemail.com (Postfix) with ESMTP id DB0C24000E for ; Tue, 15 Oct 2024 02:05:54 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf07.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728957809; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=KduM0HCutW1YAqwvlQPrz0u+FUN2nAc6D8hxHudCNEM=; b=XPtxLeJTktxWyesz+WnCLmMMQXshDDvvKtFZUwQ65vrzKZGEgqXrE/fjYzD1EAjWGAnjw/ z9Yau4Ak4u/L7C3yLqHhEiO1Ab88u8i9koNwzfvpY/RIXIn8yXogDnPH4yQoQtMcQnsX+d uXrVKA+RvNewlnBjmy++7V61QKXTsMk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728957809; a=rsa-sha256; cv=none; b=EcdbA4fGKiAaktGsBMBAgbAvUoWZlIAYUMTkO4IWUU7o+dKnrBC21+N1g1bTd0rGvqgSCU TABIi/CcN4xLKQ/L4FQ7giRxAbuborCkVBkJ6CQWHcWoeEEtf0vi6uhPYnYW92uAPO4Oet erGL1jg0sxfVLDrBlFuTB/AbkamUCwE= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf07.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4XSHV75jkgz1j9h3; Tue, 15 Oct 2024 10:04:47 +0800 (CST) Received: from kwepemm600003.china.huawei.com (unknown [7.193.23.202]) by mail.maildlp.com (Postfix) with ESMTPS id 15956140134; Tue, 15 Oct 2024 10:06:00 +0800 (CST) Received: from huawei.com (10.175.124.71) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 15 Oct 2024 10:05:59 +0800 From: Nanyong Sun To: , , CC: , , , Subject: [PATCH] selftests: mm: fix the incorrect usage() info of khugepaged Date: Tue, 15 Oct 2024 10:02:57 +0800 Message-ID: <20241015020257.139235-1-sunnanyong@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.71] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600003.china.huawei.com (7.193.23.202) X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: DB0C24000E X-Stat-Signature: 1i6738jswezo6f115ocwhuuo4xejiexm X-Rspam-User: X-HE-Tag: 1728957954-272115 X-HE-Meta: U2FsdGVkX18bh6iteqNhyEVfK3m8DZ3+S+7NA0i94h379i6G4ac8zAGJda1XiJARs8moMFlDKYbZ8iy32BTDcPoq2RVCQ5sKgmiRa6o5yvV14sjTY4X7v3fAb8SemYr52fhzCPqQlfX0iEVeUZWlrFyhTeTL/vIwG/8erq5GWXU5KZRa8O2RyIdUmdOEAK3sdJ7jJCdnrtcAxLxZi+XXVpMq+HipjpElQY5ZIeniTON/BcJoAncNxJmyC2GYYSpJ/QbOR+r/7EOCziuck9IjDl0Lqlx3vvGWiBMEVsl2RVmlSIL2aei6J7k5d8x4cu0KXxnyiQoGkM5Bckb8XzPz2uFzRcBFbco8OglwvX7GoUtyY58Unxa8MvL/iQcFCDGg4W7fIv9bOtmllX2YQT5GFbhvGqryWCHdCHfV/7tt27IE0eYCCbh+EE43kyOzFkCZLWxjmvUFMH823IJSe7Ir+yIHIu0+EJKkmfK73Jsy/ZVqbWRxYVkJmqgkPOyMG1SlUEUmP7KticIRBzN6SXnLTYdez0hsbVTjdnR4j/+7tivexzm6HwLeQiQzzSEz2v8on27Dc5gIHeuFqQNteMiCRcZP+KiRtHSEObCLx/cw67R48TxfM47qx1MSxV0WPPtioCyjsapXKlEo9IfrnjZ3umT2j8XGf6fRvC6hAR3aCH251e6w1JxcgpdQi8t/OpVoRpWJpZHqSMks1jUmDgQyqesY4XFzFj30ZT0u4tpyy1eprvHwSkaAS6UR5Ytu+fTplnaKzfjKupol2YzQuS261WdugphQ0HMwNBwAM68kYxOVMvI4ahiV1Wkgea4BpOi+yC7/OL928L4GGLm/sa61/v6Wmj8AqArTV9/CP2M10s0GOs1qGeOb+XxJWgTDIAncJPdJ9I/YbCUpRJdqXCN6XqTWOSiHcX77pegAU/cncUo/Jz3cEWU5W3yIZpio8Lz+rWsHO19UALxYgulWygM yZnj9fTJ U9zMh2wZGmKunM9eAzs2HThN4/jHtLYVpdsbC007lMUoCvH4nBxrdAi4um2VY5pin5Cccvo4CwCYJLH8CFaxcCymQchqWnN4Ld/hs4m49ryTqf+VibwbDyYdXWZVb23RhOr7tZ8eaxVYaaxQ= 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: The mount option of tmpfs should be huge=advise, not madvise which is not supported and may mislead the users. Fixes: 1b03d0d558a2 ("selftests/vm: add thp collapse file and tmpfs testing") Signed-off-by: Nanyong Sun Reviewed-by: Baolin Wang Reviewed-by: Anshuman Khandual --- tools/testing/selftests/mm/khugepaged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/khugepaged.c b/tools/testing/selftests/mm/khugepaged.c index 56d4480e8d3c..8a4d34cce36b 100644 --- a/tools/testing/selftests/mm/khugepaged.c +++ b/tools/testing/selftests/mm/khugepaged.c @@ -1091,7 +1091,7 @@ static void usage(void) fprintf(stderr, "\n\t\"file,all\" mem_type requires kernel built with\n"); fprintf(stderr, "\tCONFIG_READ_ONLY_THP_FOR_FS=y\n"); fprintf(stderr, "\n\tif [dir] is a (sub)directory of a tmpfs mount, tmpfs must be\n"); - fprintf(stderr, "\tmounted with huge=madvise option for khugepaged tests to work\n"); + fprintf(stderr, "\tmounted with huge=advise option for khugepaged tests to work\n"); fprintf(stderr, "\n\tSupported Options:\n"); fprintf(stderr, "\t\t-h: This help message.\n"); fprintf(stderr, "\t\t-s: mTHP size, expressed as page order.\n");