From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AFEBC38A2D for ; Wed, 26 Oct 2022 13:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234113AbiJZN6h (ORCPT ); Wed, 26 Oct 2022 09:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234116AbiJZN5s (ORCPT ); Wed, 26 Oct 2022 09:57:48 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11D1F748F2; Wed, 26 Oct 2022 06:57:36 -0700 (PDT) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4My9HL3GykzVj5T; Wed, 26 Oct 2022 21:52:46 +0800 (CST) Received: from [10.174.179.14] (10.174.179.14) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 26 Oct 2022 21:57:33 +0800 Subject: Re: [PATCH v3 2/4] ext4: add helper to check quota inums To: Baokun Li , CC: , , , , , , References: <20221026042310.3839669-1-libaokun1@huawei.com> <20221026042310.3839669-3-libaokun1@huawei.com> From: Jason Yan Message-ID: <5e8726b8-3632-a195-a440-22d8f220a540@huawei.com> Date: Wed, 26 Oct 2022 21:57:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20221026042310.3839669-3-libaokun1@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.14] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/10/26 12:23, Baokun Li wrote: > Before quota is enabled, a check on the preset quota inums in > ext4_super_block is added to prevent wrong quota inodes from being loaded. > In addition, when the quota fails to be enabled, the quota type and quota > inum are printed to facilitate fault locating. > > Signed-off-by: Baokun Li > --- > fs/ext4/super.c | 28 +++++++++++++++++++++++++--- > 1 file changed, 25 insertions(+), 3 deletions(-) Looks good, Reviewed-by: Jason Yan