Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1009947ybh; Wed, 22 Jul 2020 20:23:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBtBHl3+Khcc2+2jGjYjgZk2fsO5DNTlEcuVKdgXJEeXWnMhx0IMU0VnVfjFogdMyr9IWt X-Received: by 2002:a17:906:1914:: with SMTP id a20mr2389976eje.233.1595474616664; Wed, 22 Jul 2020 20:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595474616; cv=none; d=google.com; s=arc-20160816; b=N2rHu+jT50GV7+WO6K80o5Zyq7ufR64BWU+ATyj4ofdWGygp7hopGVloOMIlz0/Wft CXwY2Y0WZOZ6pU9OAc+1MUGElmBAt/OTMnbX9Wg2vu03z89vBcGwyeYrXVpn0LCfGeEK Tw/JUCQMZ5hJ0S9OS3X6BMx2V1ELqAbn3XpHDw42ehwBI4CYAuNHYepGBXbdPJCVdCyQ Fw+TdObjMH5N7h2uXBgmPQnbd1tZr1/3isy4dQtZvtpEWM8qHwWx7dZJ5Q0PH462xopL 1Ut1PRoszVTLCkCsNOwUykZ01mwzTDct4poPYcRA8VKNgs44u1coSx1/GlPQtPJBDihj di9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=/cAlRa4t+4m+3uaHHv0KjsCFJbdWWUQ8JXAF4245fFo=; b=N53ri5d0RFQV1uj1Ksj2N3tmVF7Duuc++GF6otmxvt3VNrsZ+6P92uVfPzq6sevxHX HnbHkhkpJrXTAMnWs46ZoUHbJtw+g8jBj1mbvctm9qg92ic9HJida6VXp+6Xfqq5KeoI nORLwCF8y/2tq4hTodUfGfdIvaP6i2p5pO078Vk+woJW19up8i/8dQNxWdBIG8bmbt8C uoSmZO7Ri/0N8elkkcXL/rU5wfE0xpiu8AsC7FJZIenbWrhTwBX/UTCv1DirQ27p3kkY KE/rxF+RYn7CeSSaqkMS4QTrkddLi/jdOe6PPW5LjfguUI0qNNFzi84HdsHFKdNf7o/v VzBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HfU7GCZ3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si1143389edt.427.2020.07.22.20.23.14; Wed, 22 Jul 2020 20:23:36 -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=@redhat.com header.s=mimecast20190719 header.b=HfU7GCZ3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387494AbgGWDXC (ORCPT + 99 others); Wed, 22 Jul 2020 23:23:02 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:60591 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733155AbgGWDXC (ORCPT ); Wed, 22 Jul 2020 23:23:02 -0400 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.2