Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp534527rwb; Thu, 10 Nov 2022 04:23:59 -0800 (PST) X-Google-Smtp-Source: AMsMyM7cxd7NxlFL6hppvh90P40BrOAfSjqtIi5BLNCc13xMz8PvPugatq9iGnekpIPtK088kJgg X-Received: by 2002:a17:902:cecf:b0:187:fd2:79c3 with SMTP id d15-20020a170902cecf00b001870fd279c3mr47681005plg.34.1668083039642; Thu, 10 Nov 2022 04:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668083039; cv=none; d=google.com; s=arc-20160816; b=AdLZcv4hyNyxeJfj/w6zn3TmAAV6sN724XaL0WaIaQvOpUA582azwZdepsMwvIkaui mBVjjZCiSfLAldEZ5zcuBUzz+/cRfvFSFdX2fYsrdb3tZ1Y5ygyk3o5aeWj36CGPRvn6 CCCcvSzpglY4E6pn3mAhpcqeT3y9RI7SCr/6ACvKN5hphEsLEpeyCINm/dw0le55hLFR NalrlkEVGXupLGW5ZMLyYSbELDsMbRm8G0pVjGVbZGTDAflFUs3Xlp+8dpCetLEwdt4e h4Qsz6NueySUuilpNQTTulJrLEDMgmuP739Fq1laNkzgYDLeER6VlEUZADpA1DDOgwRp KEng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Ugosg5ERslpuzDeg0hO8qMVyMRpoYwT2hziSbron8kA=; b=iuPlWYJZbB5Zln9KR60NOJ3vdBwpW34fnTQQn7Wuwd/t4xuR8jLVHGddRgpLcdGVGw C8vs9C888R0g3750ughk78gMbg11N6jdAC5+TMuRLoL2P9GTi7dZ5e24zCYIt8XcrkPR 6TZOs8WRvt3nwCqdO4XXWtvzWJSRFNUMHRu4p6T+KWuwK7bMDIUrtQk2dmW+vjjup7oM 3NzfYmEvdovhdJLU4iGTaLIWlD0y3x3f0YJkWn2uvQEe1ySto2m/nY66xXj0gJNQD83v 9YOtNB1OeaY/kUkxs6GvHJEe4MFHZJQ5Lj8tTaQ3LqSGPhho3NBJX3CDcH+CsKvRMBf7 WxJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pe6d8PvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw14-20020a17090b180e00b0020d47757829si4750490pjb.144.2022.11.10.04.23.46; Thu, 10 Nov 2022 04:23:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pe6d8PvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbiKJMOS (ORCPT + 92 others); Thu, 10 Nov 2022 07:14:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiKJMOQ (ORCPT ); Thu, 10 Nov 2022 07:14:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AA8646B for ; Thu, 10 Nov 2022 04:14:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 85A43B8219B for ; Thu, 10 Nov 2022 12:14:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 982AFC433C1; Thu, 10 Nov 2022 12:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668082453; bh=B22pu69Nba3mL3bh+uHOYfeSCh+5ORe8ehgV90spvS8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Pe6d8PvNJ9WEf5Cs6pnSBdOT2VA3oZE3XfgN9soS/kpLedvfIfav48SsMLbd1L80V ezFwc+MUzf9VwkFHHSBcI/MRsPDrJ2KQu9eijEgwkdxNvoferHhVzqcwIbRSqKg7gA aWX2wT8SJwKMYyuE9WV1JCCnngxKMg/XKWGhK37+Jw2Czb+D8xi9MG4eYSqcex29Em jx8O6rHrhoSMkCcscvSduPznpvDBaIXC3LRR77xO3lSvhlUq07BPOEk5srJllzHWGo 9LeGJGhMLe8FH7Ukf7YHl63l7OoT+ylLCo3PBbuCGITkM1IS+VrOyxL8AMVwkj8n7j TR3TKu0jQqhhw== Message-ID: <79264aa9-c78d-5768-bfd2-91be34f78ad8@kernel.org> Date: Thu, 10 Nov 2022 20:14:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: allow to read node block after shutdown Content-Language: en-US To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20221109020917.4121067-1-jaegeuk@kernel.org> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/11/9 10:11, Jaegeuk Kim wrote: > If block address is still alive, we should give a valid node block even after > shutdown. Otherwise, we can see zero data when reading out a file. > > Cc: stable@vger.kernel.org > Fixes: 83a3bfdb5a8 ("f2fs: indicate shutdown f2fs to allow unmount successfully") > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,