From patchwork Thu Jul 23 03:22:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 11679801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9BFF013A4 for ; Thu, 23 Jul 2020 03:23:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 631F12084D for ; Thu, 23 Jul 2020 03:23:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HfU7GCZ3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 631F12084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 645946B0006; Wed, 22 Jul 2020 23:23:03 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5F8CE6B0007; Wed, 22 Jul 2020 23:23:03 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E5B96B0008; Wed, 22 Jul 2020 23:23:03 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id 3C4276B0006 for ; Wed, 22 Jul 2020 23:23:03 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C4EA78248047 for ; Thu, 23 Jul 2020 03:23:02 +0000 (UTC) X-FDA: 77067894204.28.slip03_110356626f3b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 97649AA178 for ; Thu, 23 Jul 2020 03:23:02 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,bhe@redhat.com,,RULES_HIT:30012:30034:30054,0,RBL:207.211.31.81:@redhat.com:.lbl8.mailshell.net-62.18.0.100 66.10.201.10;04yg5oh5oy1jujkkpji8fx6nzx9tgoptjcm9jar7jyshhtsf8eepxhptwtn8zj4.q1h7q3mmr8u7zthdgt9mmi4ggan4798r468t9t77ec3uz3scui77wj1mpszju83.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:33,LUA_SUMMARY:none X-HE-Tag: slip03_110356626f3b X-Filterd-Recvd-Size: 2809 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jul 2020 03:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595474581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=/cAlRa4t+4m+3uaHHv0KjsCFJbdWWUQ8JXAF4245fFo=; b=HfU7GCZ3gShF3kia/ZHkRzXbRH6R8FdjcKXnhfP1M6kR46Gd3mNuo4oQdwTFUvF8mWWARw gSGcpYPjPcLM+NnL9kAq6qkCjWc+tfkBPNbxD5ahPTnPTSf+fGPApXlso/o4dXVfhodWlV L4PiWNG+vFGN6b/ZR0yT9rFiArOlgXA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-169-xtW9UXObMlObdaypLGxF0g-1; Wed, 22 Jul 2020 23:22:57 -0400 X-MC-Unique: xtW9UXObMlObdaypLGxF0g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB83118A1DED; Thu, 23 Jul 2020 03:22:55 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-53.pek2.redhat.com [10.72.13.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1D0D5C1BD; Thu, 23 Jul 2020 03:22:49 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, mike.kravetz@oracle.com, david@redhat.com, akpm@linux-foundation.org, bhe@redhat.com Subject: [PATCH v2 0/4] mm/hugetlb: Small cleanup and improvement Date: Thu, 23 Jul 2020 11:22:44 +0800 Message-Id: <20200723032248.24772-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Rspamd-Queue-Id: 97649AA178 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: v1 is here: https://lore.kernel.org/linux-mm/20200720062623.13135-1-bhe@redhat.com/ Patch 1~3 are small clean up. Patch 4 is adding warning message when the number of persistent huge pages is not changed to the exact value written to the sysfs or proc nr_hugepages file. v1->v2: Drop the old patch 1/5 in v1 post, which was thought as typo, while actually another kind of abbreviation. Updated patch log of patch 4 which is rephrased by Mike. And move the added message logging code after the hugetlb_lock dropping, this is suggested by Mike. Baoquan He (4): mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool mm/hugetlb.c: Remove the unnecessary non_swap_entry() doc/vm: fix typo in the hugetlb admin documentation mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- mm/hugetlb.c | 27 +++++++++++++++----- 2 files changed, 21 insertions(+), 8 deletions(-)