Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp97916ybl; Fri, 17 Jan 2020 19:13:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyRys9qje3fAk8AcqGHr+vdLkRRciTDhb/8frDnkoZpTsa8VcY3EfRRU8wdVYAqTRv6U1Lu X-Received: by 2002:a9d:51c1:: with SMTP id d1mr8283427oth.136.1579317211900; Fri, 17 Jan 2020 19:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579317211; cv=none; d=google.com; s=arc-20160816; b=n0YsflZnnPM3bnMdWq2DxSfcjXif5V7SU2WQJcKG752dWx5peFSvuS0qyOKTSEk330 ND5vb1u2fBQk4Qr8ZIojjJGKWvaNbQ1l0cI6rxxNVNxqtd3WYs1WyGGCWKlp2VWtiSeW LixzePf+rb5axqZVllzyxnZQG3qXF+dZPqX/Q7U1dNm14H/tSZ3uTmCNYeq+R0W+Vocl d9u2UoBjuaDOWMcla8Ztnli/Hau8covfaT922kd/IQdUBI3qJLLADCqt8GqDPWn5I52x oDB/AG3XdJj77M5Bs/gimmIk2ZPKYYkwGrnbJe6i/5t+tns6iStnZQ9dyKemOOPKVRvq LVjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :mime-version:references:subject:cc:to:from:date:dkim-signature; bh=mgB84tMLIn0uSAMXfJV2vDYw9z3hFiyT5V5E/BknGRA=; b=0Nb4UZDUORLSpzmgZ0oc3AAklLqhjP+z/pdZaFiUrAHT48CRpYLVesISEXxUOOYJtF CQxjJBnyRovvBAmIIVoHikEK+F7kp3QyVdQUpVkwcWI8JAqdMvLEbHXUhCMSLIF+fLiZ LkOrfwumeudyjnnc7JW/OxSEMIbWqF45yBbu9KqkUjYGlJPYfTbh/9zVvQa997vwFvVb 9VWQaPZw1r8AiEdRdTwzA9v0uBAIWGELUysxLz45RtmqdExgzzJNvzdugZFgFtCu61sj KKSAP9Z094xM3RZQEn2ZtosWWipTlQxij+O8tMlCm3hpTaTFat408DPmHaBqI62bACKl wcuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=msuXdwn6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si16764746otk.279.2020.01.17.19.13.19; Fri, 17 Jan 2020 19:13:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=msuXdwn6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730697AbgARDL3 (ORCPT + 99 others); Fri, 17 Jan 2020 22:11:29 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33002 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727033AbgARDL2 (ORCPT ); Fri, 17 Jan 2020 22:11:28 -0500 Received: by mail-lj1-f196.google.com with SMTP id y6so28482663lji.0 for ; Fri, 17 Jan 2020 19:11:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:references:mime-version:message-id :content-transfer-encoding; bh=mgB84tMLIn0uSAMXfJV2vDYw9z3hFiyT5V5E/BknGRA=; b=msuXdwn6zO5wagt6hHPLtl9sV/EISkBb01+VSrUgTCnVo2UglUfxhRn0jwNx3QGsYk kDd4liiZcNtMNkE9X6voYL5ICG96s39wYZkUCYDliBB87kDIJ3t/CghwYjmeETK6TBYY nyaQ7WysI4Iv4HPoMNE5hrJ7sv7UOHBHme4EUDeYokBdx/VRZ1yNLXMcybbdLODbszYH 73Jy/zwY2aFOTH2Bh+W5JKK7n/FY0VlJ0rL7egkCzG4q5AUqVEa0DTn2ApDjzeY/9efF izPkpk2IkXXcvx2meQwd2Z3b9I/HTVlTTk71wmKEkeyR5cyQIYXUxVwj3HaFGdxSRxgx EU5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:references:mime-version :message-id:content-transfer-encoding; bh=mgB84tMLIn0uSAMXfJV2vDYw9z3hFiyT5V5E/BknGRA=; b=XU20kBcMrbBqzLRYonNxOe0K0Ks4d5ghTjnqa1KwHU9Mp41KcugocaJa/RHSGXcK2t cvB/UPcx04xzyu48I1aPoBTZmc6F1NDGaegkRnLjzTrBgFJGtsivT6Q0WXe17wl7MHCR 0mpF+cjDaWDxwWCK0T9vnydzOzoLNj6KG0Qkn7Ch3rWO8llajEevL0dHgdVzIGWGEsBA wISaKR1H2saZNx94hm27dhr8LYflLeWi/yrjud+ex8M4K8Jw6LLQeVvUUwobmhd4Gen8 IQst7h4bv+aj8yu2TrNe+mobv+mhxC221soYP34Ukw1hOjQ0xM/NzQ4MFQIivsVCvxAZ KwNQ== X-Gm-Message-State: APjAAAUC9MMGvGLdEfuQpVQXtuyG261eFGMtMBP76CJN+vPfzd7P9/0m bLJRolMfUjA+feCq+jxfJMw= X-Received: by 2002:a2e:721a:: with SMTP id n26mr7453357ljc.128.1579317086164; Fri, 17 Jan 2020 19:11:26 -0800 (PST) Received: from N-20L6PF1KTYA2 ([131.228.2.21]) by smtp.gmail.com with ESMTPSA id q186sm13248007ljq.14.2020.01.17.19.11.23 (version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 17 Jan 2020 19:11:25 -0800 (PST) Date: Sat, 18 Jan 2020 11:11:23 +0800 From: "Li Xinhai" To: "linux-mm@kvack.org" , akpm , torvalds , "linux-kernel@vger.kernel.org" Cc: "Mike Kravetz" , mhocko Subject: Re: [PATCH v4] mm/mempolicy,hugetlb: Checking hstate for hugetlbfs page in vma_migratable References: <1579147885-23511-1-git-send-email-lixinhai.lxh@gmail.com>, <20200116095614.GO19428@dhcp22.suse.cz>, <20200116215032206994102@gmail.com>, <20200116151803.GV19428@dhcp22.suse.cz>, <20200116233817972969139@gmail.com>, <20200117111629898234212@gmail.com> X-Priority: 3 X-GUID: E767262C-3C28-41B6-B896-3352AB226DA2 X-Has-Attach: no X-Mailer: Foxmail 7.2.13.365[cn] Mime-Version: 1.0 Message-ID: <20200118111121432688303@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAyMC0wMS0xN8KgYXQgMTE6MTbCoExpIFhpbmhhacKgd3JvdGU6Cj5PbiAyMDIwLTAxLTE2 wqBhdCAyMzozOMKgTGkgWGluaGFpwqB3cm90ZToKPj5PbiAyMDIwLTAxLTE2wqBhdCAyMzoxOMKg TWljaGFsIEhvY2tvwqB3cm90ZToKPj4+T24gVGh1IDE2LTAxLTIwIDIxOjUwOjM0LCBMaSBYaW5o YWkgd3JvdGU6Cj4+Pj4gT24gMjAyMC0wMS0xNsKgYXQgMTc6NTbCoE1pY2hhbCBIb2Nrb8Kgd3Jv dGU6Cj4+Pj4gPk9uIFRodSAxNi0wMS0yMCAwNDoxMToyNSwgTGkgWGluaGFpIHdyb3RlOgo+Pj4+ ID4+IENoZWNraW5nIGhzdGF0ZSBhdCBlYXJseSBwaGFzZSB3aGVuIGlzb2xhdGluZyBwYWdlLCBp bnN0ZWFkIG9mIGR1cmluZwo+Pj4+ID4+IHVubWFwIGFuZCBt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