Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6285508ybf; Thu, 5 Mar 2020 17:17:03 -0800 (PST) X-Google-Smtp-Source: ADFU+vsgC01s6fpCoszDbL9fS0/BAbfQbNndUZsh/QAGRiIXQN2shQFMd4mPRf0Wiq6xXPSQEfrP X-Received: by 2002:a05:6808:b29:: with SMTP id t9mr906390oij.64.1583457422951; Thu, 05 Mar 2020 17:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583457422; cv=none; d=google.com; s=arc-20160816; b=I0bZIRpanTEDj1KrFRZLrm6xHmpW1JcOzvqC41YNV3XqeG5VD1jeOapWfKxN2LNSL3 zDB1I9+yroi6xldBl2+HNXnipjjf6E2+1EvFe0KkMbYTcNlb/LMspnaAVBLEcfQtFAmI bN7+HPKMTLNE/Owoomtz/8Gba+ymrHBAcxyKdBNBPAo0khJYxFayN9d6g3Eal9BOMMfj lkS6mFS3/uThQB8JG5+heFNAiZ/0l2Et+cFP7VcuxF7W+50kbgyc/ZPLe9VGsiX4Ad4q rsdIx0tEmBOSkOSnNZdR/FgjNpJFfWf5Psj2wzk5G4vl/fuwCfyurgrVYZeStpYBoMg4 DHxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=8ym2jHGJHglttsRW7FpZ2KYnZ0BfbaVAm46qQ3wMwaM=; b=VUBNCNIy/ZqbNSVHhui1Z5vLpQzInJ4kzDDbHYAFk3LSkS7kHshQ9G1tHIn3UO3ppY 50N6ULniOLL6o3D/bboZYk1fWMktFrR+qiJQp+mXW4AKou8MvUlrxztS6c42Es3oP1W8 NJRfUjYfcYJb41CQLUivGF+ajzcGIS2A4emCBMk+Bp8WKwlaMhZnFrbZZnHFMdtPsYA+ JcmJrAQnMsUwQNz4J/M9TcJShBbjo+FC0/HloKQExuYL6TMMtkKn+ZZijn+6m/lXFTJh nThRbKKmp4v+2JC2erpNzp0sQY1Ztd4b45MpO3/EfZXcTnz2FG6TFRXgDGLPqDj2lQe3 IJNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22si317585oic.119.2020.03.05.17.16.50; Thu, 05 Mar 2020 17:17:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726271AbgCFBQL (ORCPT + 99 others); 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,