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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 589B9C3F2D2 for ; Fri, 6 Mar 2020 01:16:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 341BF206D7 for ; Fri, 6 Mar 2020 01:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbgCFBQL (ORCPT ); Thu, 5 Mar 2020 20:16:11 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11173 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726162AbgCFBQK (ORCPT ); Thu, 5 Mar 2020 20:16:10 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 701FE4C8BE47CF47207A; Fri, 6 Mar 2020 09:16:08 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 09:16:07 +0800 Subject: Re: [PATCH V2 1/2] f2fs: Fix mount failure due to SPO after a successful online resize FS To: Sahitya Tummala , Jaegeuk Kim , CC: References: <1583245766-3351-1-git-send-email-stummala@codeaurora.org> From: Chao Yu Message-ID: <9edd90a3-85d4-1a9a-ce34-f05cec7e4da5@huawei.com> Date: Fri, 6 Mar 2020 09:16:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1583245766-3351-1-git-send-email-stummala@codeaurora.org> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/3/3 22:29, Sahitya Tummala wrote: > Even though online resize is successfully done, a SPO immediately > after resize, still causes below error in the next mount. > > [ 11.294650] F2FS-fs (sda8): Wrong user_block_count: 2233856 > [ 11.300272] F2FS-fs (sda8): Failed to get valid F2FS checkpoint > > This is because after FS metadata is updated in update_fs_metadata() > if the SBI_IS_DIRTY is not dirty, then CP will not be done to reflect > the new user_block_count. > > Signed-off-by: Sahitya Tummala Reviewed-by: Chao Yu Thanks,