Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp818799lqb; Wed, 29 May 2024 11:21:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHMTmK+CWsSs/UtgBpUebYYOmodrnC19LoaVaeKqJGDiX27crZzUZU6LKRL7NKAVpfGMLM3/mTvpYzEBMsL0rSuPYF7QuqYh7V7QHhcg== X-Google-Smtp-Source: AGHT+IHwMJJ/JEWR8tyds4+mWPKUH3rxK0oHj6/RKKvPKbeofcSUKEVy8lxILR0dDS7kLhj/e/zj X-Received: by 2002:a17:906:c8d5:b0:a5d:1334:da86 with SMTP id a640c23a62f3a-a65e9100ed5mr905766b.62.1717006907334; Wed, 29 May 2024 11:21:47 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd928d2si645776966b.813.2024.05.29.11.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 11:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194564-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=neutral (bad format) header.i=@oracle.com; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=khX4tzH1; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com 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 DE62F1F2330D for ; Wed, 29 May 2024 18:21:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 741A915CD64; Wed, 29 May 2024 18:21:40 +0000 (UTC) Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F113DDA1 for ; Wed, 29 May 2024 18:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717006899; cv=fail; b=Rbamh7JZgAfvCXr0ZFSN80kKR3UoDrfEbralFWojeHWDr/wWwQn1nYZOMsQaXog/hrvViQ0KGDzKDiiAYqlqexHgTgQuy9ZCDA4/0NqR15h0pQO5dK1RPN9H+Wy2YrL/AN9I6SS67f+w9IuajDChwzF4xDX9aXYeU/gaap/LZw0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717006899; c=relaxed/simple; bh=ShD43NCHIO8g5sXcGOGWRS+XmjRFZlnB+GDBAF43mps=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=PNtq3Kd+4IOY3TGTEwzrRFh8imUUOLDcYMDxtmPKdkIHZhlxphles5Z6pPngJVVWz9IDGAJM/c8/GO67L+ociq3xkSmla+9dpeDuHxg4rtSbcyJq54HGn8lLPqhxc63ABO827Q6d2jVU52u8ovxnWGM72MONCFAxeuseTZnxy9w= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44TGYBRB026368; Wed, 29 May 2024 18:21:18 GMT DKIM-Signature: =?UTF-8?Q?v=3D1;_a=3Drsa-sha256;_c=3Drelaxed/relaxed;_d=3Doracle.com;_h?= =?UTF-8?Q?=3Dcc:content-transfer-encoding:content-type:date:from:in-reply?= =?UTF-8?Q?-to:message-id:mime-version:references:subject:to;_s=3Dcorp-202?= =?UTF-8?Q?3-11-20;_bh=3Di9SgFiuQQgPvVIZ7bkP3Smj0vD5dkxbK45TmjC1zlkY=3D;_b?= =?UTF-8?Q?=3DCtA8EIDD2yNJ4lC/BhpLwtK+VSEjhnYdLOQA0MowlRVs06hlQdtJMunJhIO1?= =?UTF-8?Q?Xe4blujB_b059Qb1h/Zt2QHJH/1gTKuGi3pYvaer9LSFU0bq93K32s+FHkBm+Eq?= =?UTF-8?Q?WHR/PTbf81Mp9K_za8JiyJqXPjja8TfpidYvgizQCINpP/rGNaWdm1zmBPE6LMM?= =?UTF-8?Q?+uDoN7Vo0/iNIKII3b0q_CBJuq4+bmJtAzYFi1br7vlWg4ypMpVNSIFFMrjQm8r?= =?UTF-8?Q?OYPmC4hoFhD6dVk+I5U80Nsrnh_s75ecTtED1CT/BfdgOCIV/1UMj+VsQGQnhOe?= =?UTF-8?Q?z9Eijei6EUzF5r0mp2a9ZXJorRDH0RLd_ZQ=3D=3D_?= Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yb8p7q8tq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 May 2024 18:21:17 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44TH0dpU026818; Wed, 29 May 2024 18:21:17 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3yc507jswt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 May 2024 18:21:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=meVAGRdntLWCoo+YF9P50IRaNb0OHqteOgJ+T0QbFVRZ3P2qM1dIqnMxqMpzZesqjGCcUEF0QzKwNtCPvDmg+7Ve3I+MnFNqVKW6KYsWGNnvM2qsQ9LMV5E2LpQvi3up8Yy690Ih6Nx3dRj6LwAQwxVbUbapdUpwrhMxMhJaOZJeERn+3fnpJOdL5s9k3aas9s6B+ZyapIiRDIIAKBYVFyOlpAzXAckbbdsbD1EL7ErfoMtfX9DMFuLq3JUHB7nicLonGA+m3qT6WHNfoPocrSd5NCD2B0EdY4mSkh4TEtLWt3sH/daL4Eq4LMsr8D13ZcFpxVzAklrKktNSYarJuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i9SgFiuQQgPvVIZ7bkP3Smj0vD5dkxbK45TmjC1zlkY=; b=CfLDrV5qRxG8z8R5KycHRF7TIWrh08JbNWQBgCWLH3KdWAnmhTRZIVa9d0oPPDYxgHZzU6N5NjWtEwd1vx6Z+aZ8C5XPZQColc8h4Ay7uOIAcp9TYOr6XRJ3m+1RnUN/2Scej6wfDlIKPWA86Xvaq4KQSNwb5F6oY/9Q6v7v0bBZ/jj/qaajmuTSfmbjoYPTlWQDKvcKZPAfi/t+tlCnxyHlswForj2l+HuiXSiqPTC8auyoJYQPCmijaJ3ACVWAYGNIhEMfkBh6+cTMPHuM0AxX612SeRfOdB2MfvfHl2YAjxKCZgcAknM2CmAuaiY2kn888J+pJH59bYHWpxO/aA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i9SgFiuQQgPvVIZ7bkP3Smj0vD5dkxbK45TmjC1zlkY=; b=khX4tzH13MeRlDOMPWVHIiacN1w9SajpNbZGwesNzRIV3MOOtcWssPKN0VgPshepfN5TlGWrCKdx4Nw5qKaurs7jinb5zBOtLVVATSMvKoWm54fC6lfqhQ1JrHJ+tCNw5HgU1nzPrdHaG1C6KAoAk9WKuTJkkG1Q4ARVLK/9ZqU= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DS7PR10MB7155.namprd10.prod.outlook.com (2603:10b6:8:e0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Wed, 29 May 2024 18:21:14 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2%7]) with mapi id 15.20.7633.018; Wed, 29 May 2024 18:21:14 +0000 Message-ID: <328386e6-7cb5-4571-97ae-23a6d266c1e5@oracle.com> Date: Wed, 29 May 2024 11:21:12 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm/hugetlb: mm/memory_hotplug: use a folio in scan_movable_pages() To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, vishal.moola@oracle.com, muchun.song@linux.dev, david@redhat.com, osalvador@suse.de References: <20240528220321.144535-1-sidhartha.kumar@oracle.com> Content-Language: en-US From: Sidhartha Kumar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR07CA0071.namprd07.prod.outlook.com (2603:10b6:a03:60::48) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|DS7PR10MB7155:EE_ X-MS-Office365-Filtering-Correlation-Id: 9422293f-4b0e-4817-3a6c-08dc800c1fee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bUp5RnBHNmoxdE5wN3lmYnJZYUV0Z0xQQVNiMWpRWWxwaXJQcXZXTXZEcXBp?= =?utf-8?B?NEJjZ1c0RmJXRlNFK3A3aU00bVNRUmRWT2kvQTZtNDJGUm50MG5sanFyVElk?= =?utf-8?B?OGkwVG9zaVNnb0N6VU5CM3R0RGJKMStFa2ZjRXN5Qm1jcXlQdWV5VjZBWHFy?= =?utf-8?B?ajRsUU94WnMxRmpRRFUvWW1IR3A4TGkvRXdEVXVYT0hEV25MY3RuK0FOOWdL?= =?utf-8?B?ekZsZ1RXRjhMaTQ3SEpYSGhuV0hjN0p3OGpuS0M4YzJBZzRlbWRUbjRvQ1lh?= =?utf-8?B?a0kybW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?utf-8?B?YS9wRDV1ZHNmblFqL3ZiWVNrTEJ0VGtWajErZWQwT1V5Z09LRUtoR2J2K29T?= =?utf-8?B?NHFvaENFNjl1K1ZqRDBzYmYvMTBIb1FnNjE5L3pWZmxnTE1NT1NqSEJCSWtZ?= =?utf-8?B?bzN2ZkJjcmZvMkh0QVNnWUJPWXVMYm0xMnZMZVBnRmlBNVgrNG00enA5NkZR?= =?utf-8?B?b3FMeXpXTHJab0VQakt5RmdZZnl3TC9acmJkbVU3dVlKZGp5bisyVDhNQ09a?= =?utf-8?B?Z2lidjlaMktOK1ZMNjIySjEvdUdNNU5Yam96YTd0TnRGQm55RVEwRHJCeGo2?= =?utf-8?B?eTBRZEVGQkJxYTVLRnFTQXdzTEtDMXBXWEpDbnkya2NnbXlRREJCU1lvc2E3?= =?utf-8?B?RU9LU2RnTDFCUDcyT0lFdU80LzJzc1hUcWhwcGhKSU8zdThLQWo3UmpOcVlS?= =?utf-8?B?R1VObHNxV3RlYmRraUxVcHI2OWtqckZmSlBBZXhOZVZSUUpwbkYxajZIb2Zk?= =?utf-8?B?TlZBZ3UxdHpERDE3dVBVNzYyc3J1RVU0dmNhMjdmTklvSFpJOEZJekh3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eGJaQ0orZ0ZiVTBCYmNYckZINGhVci9YZ0NGVGpvRDVXTVkxTXZCNWZLWTdr?= =?utf-8?B?R0g2UkRvV3pMdWxSWmdNcm0xZ0MxaDdsNG9wSFFESXM0d2VWVTA5ZENqS2pY?= =?utf-8?B?K1o3RTVUREowbHRKMHZ6Z1p1NFNPcnhOK05LNDJpbGpyRG1NY3Jz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XBjM2EybGFxOStTTUtyQ1BrQS9aVGE5TmxNMXRF?= =?utf-8?B?R3hQWDNPQTVpenBjSnhFakpHRXNqckxkOHk5ZStFa3krNm9LcWRTOXgzRGZR?= =?utf-8?B?ZG9VMFZCRkdXelN5b3BFc1Y0VCtST0l4Slh3aGlRMzNzNU85b0NOL1JxcVZT?= =?utf-8?B?QkRDeFFCeDhSM2VRUU9FeEplcUQ5VGtubXBRdERLQk1xZ1BNRHNXMTMyWG1t?= =?utf-8?Q?EKRz3Mq+prteO3s0PirQ1oU=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: AYZmrdOTZSFYrZ/wxBpdWOBr375cetUpWkmFJLqZBfzMUgcDgstEs+n59rpnqT+2aS8JsSUk/KT1B8AKLRaukwNu8005gy1otmOsmbUKq65xcpcaUcseoVsDdm5bUkKGms2zmMIEDM1w/fyA/tRZuDAXo6TtlxJEFmNh9eRBhKtYA6lWX8OO0QIFzF8fEYn6bs3t67qnWHTgmoCpJ0kk1lBgZRi0ZAbPik3YyZouvEg7nQAR2OujAT3rByb7FSYk0ESbVZNoUkR316IK4xC0Zbo/4tVlXGojX5OAlsLBRO1DWjC0YBJ+Hh6jh3ApWrZdnuwSWYL8ksLjyBhzpoK/vZGW+tpPuqMkIf5r4UgiISJ83HjprSvONb1r5pfAictDYySiiFAv2K0CbZRhxl7IMOBSkP+z9sP2X8NF558qG4pwuBHfhCHhF13LnduF4zRwxA4HnMwVr/syh84aKLUYHTI7t0K7DCKRZ6DXVS0rUA3kvrX+gMUhtQXJbPgLTw/dDlQ4eZ05YhoSjdBH7WSoM8y3/LT8ep7huiragn7hqVy7dXDvbpGafQuBIuSQ3Ng7PtdcZBdnDnzzOg5Xmsm07wdzNrKE+tJ0w3Icvk5v6tE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9422293f-4b0e-4817-3a6c-08dc800c1fee X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 18:21:14.5803 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GaNrMX3AzBRM5FbFpqqYoXKxoMA+veerN4atNqH9lUdaOeZQrZv8Dh9YE/Vbtm85uU7k/aCfwqdZKvqm9RV3u6twxPwu1pcLRZI3oTYzk04= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7155 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-29_14,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405290128 X-Proofpoint-ORIG-GUID: EKVYs4TeD3vSQtan6OwNDxkIA-QsO2w_ X-Proofpoint-GUID: EKVYs4TeD3vSQtan6OwNDxkIA-QsO2w_ On 5/28/24 3:47 PM, Matthew Wilcox wrote: > On Tue, May 28, 2024 at 03:03:21PM -0700, Sidhartha Kumar wrote: >> @@ -1761,9 +1762,9 @@ static int scan_movable_pages(unsigned long start, unsigned long end, >> * cases false positives and negatives are possible. Calling >> * code must deal with these scenarios. >> */ >> - if (HPageMigratable(head)) >> + if (folio_test_hugetlb_migratable(folio)) >> goto found; >> - skip = compound_nr(head) - (pfn - page_to_pfn(head)); >> + skip = folio_nr_pages(folio) - folio_page_idx(folio, page); >> pfn += skip - 1; > > Isn't this an unnecessarily complicated way of writing: > > pfn |= folio_nr_pages(folio) - 1; > ? Because folio_nr_pages() is a power of 2, I agree this is simpler. I'll make this change in a v2. Thanks, Sid