Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3400874pxb; Wed, 14 Apr 2021 04:53:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBmV+dkkHJKTuTwQTmwP3JOQJ2ph0HlvZFlsL9/a0Xu4E3UD9dgEiaR2Pc2rKJtXeAnW+7 X-Received: by 2002:a17:90b:438f:: with SMTP id in15mr3230950pjb.116.1618401222730; Wed, 14 Apr 2021 04:53:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618401222; cv=pass; d=google.com; s=arc-20160816; b=Q19XQYWtRD84bmsnDxup59d95ZPNw3ONoqAKzsaC94pmcu2RMyi9D6uIiHF8LlScUL dA08jRwbUgPEN51z1TizXh9wdKcS4g3qjGs2XKRAMy10ZV455JVPyR6n/dPiBAAx/vSe w5pJVyFlENZqDt3ZPb+DLhshviCb6ayLVVcT69eVsqmwCjUhep1Q6eljS6RKnYbhGlLV vnDw8R/952w6m6qaXk8kKzjg17B9N2vfNLzsceDQ97JXTVtcf0h9pvzmiIeuaAui9kTD v8olyGV9gb7sSNEgq9/MuJKLw4y7MJy2utDPtmRj+skFu/0/8XTZk14feP5uZd49Jb8C t/qQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:references :cc:to:from:subject:dkim-signature; bh=E/7whDsm0ufeTiZ4uoEc89rydxhUmpah1wpTcpLMJUY=; b=L6YhNwUKVhDQdaCHIctauJN1C6LGpEBwrIiVTYOxUmuJL9IonNy8MuGkcZrlLj55tz hZePRaYMFuIOOfXhvswI8A4gX3Cb9TBaSCDptFAOL2OGve1ttpDXR/gIm2OvVBcnBGCs vLEoBYB3DWiba3ygHnFeuYL8fmY1Np8x6upsoTNE+XHUVAvxyK2TxxD/vqBfcTjz9JLe 78PF6cAAYMAfQCblHlqj2KK4pvq3Fh7gxbs2jk/x/EGXusP7U/39XtZn3K2O3IDmE61p ZN8gHWu9hBTatQTPhzs8hvGRdJQ30Cz3pF3XgJRW0y8bambMh2g33sbYluZpjWHtGMLt U5/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=fzX57QBM; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si2973099pge.184.2021.04.14.04.53.30; Wed, 14 Apr 2021 04:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=fzX57QBM; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239472AbhDNCPL (ORCPT + 99 others); Tue, 13 Apr 2021 22:15:11 -0400 Received: from mail-bn8nam12on2040.outbound.protection.outlook.com ([40.107.237.40]:48640 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230293AbhDNCPJ (ORCPT ); Tue, 13 Apr 2021 22:15:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RfGFoOkwtbkw9x8ATSlgHylau11S+jH6U+ZvN5rGLxd/Du6DYzVIeYSzajM/4rF90HKn+mWghbRrjM5nUCcuPzAzUtmLuWp5ffBIYKEW06jU2hRs364v6VQxCJGRWe8K+WIoHDgme3jRYzQEv5gwvDDruMKuCZxDHcB+kRrFBbDKdvMn2y4qleJDD/rU830WnZcdujwGqcbQ+pBWoAGBEYfDskkxrptMbpNN4E6rR9P8IP9WKwQBfoOk/7a48PVPB+jROU9EDpdBb8dqFvwaj9sZtZ6H9QwY+ENgl2Uii8rkpMTMl31iG5D2qCYdKPD8JetXldUcLgW2h0+6TeZJdg== 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-SenderADCheck; bh=E/7whDsm0ufeTiZ4uoEc89rydxhUmpah1wpTcpLMJUY=; b=adz+0hLSxo8W7Pw09bvmvfjv+S450tsw4KjHNWIwUl9jRhmDxsER/AipampGVu1WEt4hmT9GHXWhqVam9Cyo4ZptLofyd+B9dz/1kl4E7ac9kxbFmv7KXB26bPUfZ0MfdjtKL5zyqKDWiI+n3+RBeatNpoY7eA+/O85+C2XbJL8zK2lZAATVSLXG4AiXUU3ABpG+fFCJDOUmWuCoiJl3xxc7zixOtccs4LZfHiQsKw/V7Jx8EyuWgjAwc67mOEAPWlaz6hkPT4RqlD9xfYUhnVLQMbYqb/VCfP8P5gvpVe2yKc1gkwLE+bVqaXRuBeQtjy6jF26pW/5hcWCPuGwaTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E/7whDsm0ufeTiZ4uoEc89rydxhUmpah1wpTcpLMJUY=; b=fzX57QBMZoELLJPjggnFpQBBUGgz7fYB2kvM4woG74ysz8W1OwlzZF8MKmAuz4Vrd9ToY8nmdn9VlHvoJhoW56D64ZmJBaGTLYpir9v8DaaWcjkNdNogxGIPTWieAnOFqBzj+dkQ8/0dl7/5PDQ3imRL5oA7PXYpVziqj7SVsn4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=windriver.com; Received: from BY5PR11MB4241.namprd11.prod.outlook.com (2603:10b6:a03:1ca::13) by SJ0PR11MB5168.namprd11.prod.outlook.com (2603:10b6:a03:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.18; Wed, 14 Apr 2021 02:14:47 +0000 Received: from BY5PR11MB4241.namprd11.prod.outlook.com ([fe80::551b:e310:2ae4:3011]) by BY5PR11MB4241.namprd11.prod.outlook.com ([fe80::551b:e310:2ae4:3011%6]) with mapi id 15.20.4020.022; Wed, 14 Apr 2021 02:14:46 +0000 Subject: Re: [PATCH v2 0/2] mm: khugepaged: cleanup and a minor tuning in THP From: "Xu, Yanfei" To: shy828301@gmail.com, Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210407030548.189104-1-yanfei.xu@windriver.com> Message-ID: Date: Wed, 14 Apr 2021 10:14:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20210407030548.189104-1-yanfei.xu@windriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [60.247.85.82] X-ClientProxiedBy: BYAPR03CA0016.namprd03.prod.outlook.com (2603:10b6:a02:a8::29) To BY5PR11MB4241.namprd11.prod.outlook.com (2603:10b6:a03:1ca::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [128.224.162.160] (60.247.85.82) by BYAPR03CA0016.namprd03.prod.outlook.com (2603:10b6:a02:a8::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Wed, 14 Apr 2021 02:14:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45ef747f-6a6d-41e2-0c3e-08d8feeb132e X-MS-TrafficTypeDiagnostic: SJ0PR11MB5168: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8hZjgwvtGpJSdw5V5fZCn3K/e0zIEwJarBITnhhGQkaXStNllRU06+X4T/+/Ngpe7kPrSs9tKOKEdFbK2NvAsKgk0saMZS4acS1xK+Lvucg4GcALadEJ7BJ8rZA4A08QH/jxedWEhOyqnuW4xRHhkfnIIrH8maQJLeNiv/XytiuykFJpR2E74SY/aglbxniQxltGiLswuiThQUbYTM8ta+4g7P5SMXoFOAt+9omtO/4TCfIE0/bP2xKeIpQUeXWVCbN0dkBvdT/2/GH78IG8EC/F/td8b+WZn9zwcjMVxa0LGbIpqJNA99P7FG3LOVf/S1lZrVB+kHVM9cGERsmWQg2tioajCKXABlq8VeRUv3d20BkuP1H8mYIYExDJnpjtyl68QikS5qCvOVeOLdu4p+GUvwK/O+QSKsH+2mYRcyWHsENC4hLASLz+85raSUitQva5j6EtnZXN0PihFERSxWzhWmHioKhyfX31l1QF/CO8OsX0mv1821RwprIpnglJWYepb2tstnjmC1rc1ekAFZ4skUZTcxDNK/nC+C9jVVHAhdVCaG35Gnx9nqxUFeUu6vM+zLRogfBheJJM8q4Z0BYOymJxDNiiWYyNR9BU6gWJO4fE0Iw+gccoOM2WFJTRmHuNssc5sgCldGU5HaHwDiW1/faqP0UgtU5CQl2PNfrMRnL/6YFsvty4Oa6HVtpaegBZef6Jc2CKC3KmdaghZPmhrEZO24//TigUF8WXzPk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR11MB4241.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(396003)(39830400003)(346002)(376002)(66556008)(52116002)(4326008)(83380400001)(66946007)(38350700002)(8676002)(4744005)(66476007)(478600001)(53546011)(31696002)(6666004)(186003)(86362001)(38100700002)(16576012)(26005)(31686004)(6486002)(36756003)(5660300002)(316002)(6916009)(6706004)(16526019)(956004)(8936002)(2906002)(2616005)(78286007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?VDcvQ0NQeCtXQ3NWNEFNQlJhZmR4K3grcG1VdXYyTmxzQ3ZKUndVeWlZSnNn?= =?utf-8?B?Tkp4STF3V1d5WkxBZXcyKzJyTkZRek4yWGFsd0VQeGpHbnRXS3o0dVVjWUxN?= =?utf-8?B?WGRUTlM0aUdnQ0c3ZHBha2VOb2I0TWpCOUhlOStkSnBZNjNEYkF5Um0xdUtV?= =?utf-8?B?Yko5eWZZM2lrVHVIOUluTWQ1cGhqaVl4amRmVFRqWEZoeVVQUXBlN2NsaDcr?= =?utf-8?B?cWg3S28zOUZEUXlNTzdXWkdoZmkrSkR1WUhtUmViZFM1NUl6V3YzOEgxbHEz?= =?utf-8?B?aytDQWZmdFprblhMVldhYjR4eExWNk1QNVdiY1Y0ZGhjLzYzWWo4ZjNNbVc0?= =?utf-8?B?aTgzbURlVHVQM0k2S1pnWFFuSjdJV25RcWQ4MWZQMXk1ckszeFQyUmlOQVhE?= =?utf-8?B?eXVpaHVYVjZ4VlROcS90eEx2OXVCeW03M1BXWW5US2ZrK1l6V0dJYVF5Rk1k?= =?utf-8?B?Y1hUZzQ1OWNIdi9XcDRnUjRYSVZHdTl5Y0hLZ1hhRm0vbTZnQllramcvU0Vn?= =?utf-8?B?YXA2K0JYYm1QQzYvbTVNU2NzK3dkVkYv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Q2xkQ3Z3aGFnR0tNVzFkMzQ0ODVxeWpmZGd6cmRJb2Q2?= =?utf-8?B?aVFBYjhHUU9kNEdJTUlUVm5QNTV3R2xUSXJKSjBBc1dJNnBjeVRaYnBTN040?= =?utf-8?B?Z2M1d1gyMUxmSEs3N2tzc1cwZWE3Ym4zRENjS0lHa3NHWUlEbjNJMVYzbllZ?= =?utf-8?B?TzlzY21WeUtkN3Zac05FMHJ4N3F3VHlZWnBhclBjY2sxWWNRdUZKMVFQZDBI?= =?utf-8?B?MXpORWl2MGxqcGZSR2IvZ1c4amMvLzB6N2p2M1JEbTU4ZzdjTUFvMUpiMGpV?= =?utf-8?Q?cfTfHArJXs5kyO/mOGVDIW7lE2p6aYn2B96BTvW?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45ef747f-6a6d-41e2-0c3e-08d8feeb132e X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4241.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2021 02:14:46.7148 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aSOYPS4+ZEvuwbMG3R5oKLMsOL5eavpnC4jTSjy1TzJd0Wb3fLs7AA9dhZQV82oDgqEgQq7Sp6Cr1BkhmuONKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5168 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gentle ping. On 4/7/21 11:05 AM, yanfei.xu@windriver.com wrote: > From: Yanfei Xu > > v1-->v2: > 1.correct the wrong location where the goto jump to. > 2.keep the cond_resched() dropped in v1 still there. > > Thanks for Yang's review. > > Yanfei Xu (2): > mm: khugepaged: use macro to align addresses > mm: khugepaged: check MMF_DISABLE_THP ahead of iterating over vmas > > mm/khugepaged.c | 29 +++++++++++++++-------------- > 1 file changed, 15 insertions(+), 14 deletions(-) >