From patchwork Thu Jul 21 13:16:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12925106 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81188C43334 for ; Thu, 21 Jul 2022 13:16:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CF5658E000A; Thu, 21 Jul 2022 09:16:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD0A18E0001; Thu, 21 Jul 2022 09:16:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD0AE8E000C; Thu, 21 Jul 2022 09:16:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8449D8E0001 for ; Thu, 21 Jul 2022 09:16:54 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 55B5CC08EC for ; Thu, 21 Jul 2022 13:16:54 +0000 (UTC) X-FDA: 79711157148.25.5EFD0B6 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf03.hostedemail.com (Postfix) with ESMTP id BF25B20065 for ; Thu, 21 Jul 2022 13:16:53 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LpY1R4rsqzjXMp; Thu, 21 Jul 2022 21:14:03 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Jul 2022 21:16:49 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH 0/5] A few cleanup and fixup patches for hugetlbfs Date: Thu, 21 Jul 2022 21:16:32 +0800 Message-ID: <20220721131637.6306-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658409414; a=rsa-sha256; cv=none; b=Y+iCRWcpxPsu6qLtH1NEeiLVkKyZotvfGLLUfKsT9kJwZsqgKAtLb6aRI8F0sFsSm0gkwn f7GpzOS1U69Nn+n8v6nLgjgosF1dOkX/tApAk2nQlJ/iOhgkw8P8FPrkAG0330FRDVMbk3 +miYcfmGwGFUJdPX0d4fEz2cFHRWy2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658409414; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=3K2Mn1arGaz8hzwLRSUW1AU91rS/QM42PAfmp58QEz8=; b=Y3+dCL42NFHCflxktlzEy9KNMlrsJyvw6U343Q5jFHP42sTQeS3TSsAbbQyHi19tjh4Z8F +G6fgje9Y3V2653T8wtaC5/sMSP+1Vj0iFvAK2RSis1EmOQgAs9Em4Q3cEGSX7hXERL6qZ I/bQKt7JanHs8fECzldAn3k4e01ioT8= X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: BF25B20065 Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: rf8jnsss5nru9mxpmujywwwfer8midw4 X-HE-Tag: 1658409413-390039 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: Hi everyone, This series contains a few cleaup patches to remove unneeded forward declaration, use helper macro and so on. Also we fix the confusing hugetlbfs stat. More details can be found in the respective changelogs. Thanks! Miaohe Lin (5): hugetlbfs: use helper macro SZ_1{K,M} hugetlbfs: remove unneeded hugetlbfs_ops forward declaration hugetlbfs: remove unneeded header file hugetlbfs: cleanup some comments in inode.c hugetlbfs: fix confusing hugetlbfs stat fs/hugetlbfs/inode.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-)