From patchwork Mon Jul 20 06:26:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 11672909 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 D137D13B4 for ; Mon, 20 Jul 2020 06:26:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9DB3822482 for ; Mon, 20 Jul 2020 06:26:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TEcYV6Gx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DB3822482 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 A8B226B0005; Mon, 20 Jul 2020 02:26:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A3B196B0006; Mon, 20 Jul 2020 02:26:34 -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 91FDE6B0006; Mon, 20 Jul 2020 02:26:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0185.hostedemail.com [216.40.44.185]) by kanga.kvack.org (Postfix) with ESMTP id 7C7416B0003 for ; Mon, 20 Jul 2020 02:26:34 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 03B05B3709 for ; Mon, 20 Jul 2020 06:26:33 +0000 (UTC) X-FDA: 77057470308.03.meal02_570303726f22 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id C964F199AD for ; Mon, 20 Jul 2020 06:26:33 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,bhe@redhat.com,,RULES_HIT:30034:30054,0,RBL:207.211.31.120:@redhat.com:.lbl8.mailshell.net-66.10.201.10 62.18.0.100;04ygz151decknjkbac6my3i463f1sypd91ew1qf9aw191h7za7pwgqjdpmtkufc.aggucjk7wfg1o769oftdkhjyhddfpzn4gaci8utidnxgehcy8ast49rdnpprfo7.o-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:23,LUA_SUMMARY:none X-HE-Tag: meal02_570303726f22 X-Filterd-Recvd-Size: 2504 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Mon, 20 Jul 2020 06:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595226392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=sumRvwSTbxBORUEi/iKTdK+XpZsHbvlEnY9UD4E9X0k=; b=TEcYV6Gx5jBfXKJLcionYDyk/IZrhlNueqky4kWriRzjrihPy6hpTisbS6FgNuaf2UnUid +Y+DFizN8/t24i1+dG49wGo2n/aBRMLAXguDXs+LPP0MC6awGjWDdGCBlKCuNXHs90Twfc EqgmG/YL7Z0CnrZyZzQSNgHXW9exzbk= 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-443-RYo64Zx3NVOLsu4tuKi0hQ-1; Mon, 20 Jul 2020 02:26:28 -0400 X-MC-Unique: RYo64Zx3NVOLsu4tuKi0hQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 274CD800688; Mon, 20 Jul 2020 06:26:27 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-150.pek2.redhat.com [10.72.12.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id 229B878526; Mon, 20 Jul 2020 06:26:24 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, mike.kravetz@oracle.com, akpm@linux-foundation.org, bhe@redhat.com Subject: [PATCH 0/5] mm/hugetlb: Small cleanup and improvement Date: Mon, 20 Jul 2020 14:26:18 +0800 Message-Id: <20200720062623.13135-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Rspamd-Queue-Id: C964F199AD 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: Patch 1~4 are small cleanup. Patch 5 is to add warning message when failed to increase or decrease the expected number of persistent huge pages by writing into /proc/sys/vm/nr_hugepages /sys/kernel/mm/hugepages/hugepages-xxx/nr_hugepages. Baoquan He (5): mm/hugetlb.c: Fix typo of glb_reserve mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool mm/hugetlb.c: Remove the unnecessary non_swap_entry() doc/vm: fix typo in 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 | 49 ++++++++++++-------- 2 files changed, 31 insertions(+), 20 deletions(-)