From patchwork Tue Jul 26 14:29:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12929377 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 1A560C00144 for ; Tue, 26 Jul 2022 14:29:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA5D1900002; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E53F68E0001; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5C81900003; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A577A8E0001 for ; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 76DAF1C6C01 for ; Tue, 26 Jul 2022 14:29:41 +0000 (UTC) X-FDA: 79729484562.03.E1BF7E6 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf07.hostedemail.com (Postfix) with ESMTP id EC2C640098 for ; Tue, 26 Jul 2022 14:29:38 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LsfQ73cphzgY8Q; Tue, 26 Jul 2022 22:27:43 +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; Tue, 26 Jul 2022 22:29:31 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH v2 0/5] A few cleanup and fixup patches for hugetlbfs Date: Tue, 26 Jul 2022 22:29:13 +0800 Message-ID: <20220726142918.51693-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: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658845779; a=rsa-sha256; cv=none; b=zLUIdiYM6FBZSA5imjQDut8lIG2V8rGb5lVJH96I17pubEW1YcvHqJ8zgNO85jzy/W4wnz liBQ+aiedp2k5RQZOzi7DHe1N9MxunhZfCMOfG9qDJeX+/vGPew/5ynDU8quUlowS3LEh2 3XkadEt1VQ/6l5TQKyb/Xj6qXTUCb4o= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf07.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658845779; 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=1PAzMQ/pvT6+aSVT0WrYgvTfe31W9BGTC2/VYEIWnlg=; b=tQQKp3qAdiwgwrCCyoC6MPMbUO6d8xAgXjxRKHOhVZiGUEit+DYz5+3z4XqQKUpdsVRL6E FtClVcElhOmDLdqPF9wag61ZnwV/D3NOadT8AlQzdMv1ApSaYpDFghhyZflAqBv93Bc2DA HdyPgywN5rxY/bCNeN+puEce5nAGccs= X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: EC2C640098 Authentication-Results: imf07.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf07.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: f7oz45pra1yukatn9h3bgfrj979d77tg X-HE-Tag: 1658845778-823117 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. More details can be found in the respective changelogs. Thanks! --- v2: collect Reviewed-by tag per Mike. reshape the comment of 4/5 per Mike. drop code change in 5/5 and change to correct the comment per Mike. Many thanks Mike for review. --- 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 inaccurate comment in hugetlbfs_statfs() fs/hugetlbfs/inode.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)