Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp629050lqa; Sat, 27 Apr 2024 18:24:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8kWvNQDtRVTlKUCNlctfZe19g/3hGoovjHkx5irhWWqPksf1ZkkvkDB/skdPvg9TuMhH8FRto9mQB98JHK13yarJQjlZ4Kmuo2YNvTg== X-Google-Smtp-Source: AGHT+IEYAflLO2m8Ngul3jfX7yb5QHNb935BxgQqVxWjXWZ593FVRzWnidgU2iU9SO/ijPy2K2vs X-Received: by 2002:a17:906:3805:b0:a58:e2b1:932d with SMTP id v5-20020a170906380500b00a58e2b1932dmr2140682ejc.53.1714267456892; Sat, 27 Apr 2024 18:24:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714267456; cv=pass; d=google.com; s=arc-20160816; b=0IVQsn0nt6bC9Q1dqMq4XJ3uhEqfF/45bCY3kgwnuHP4bJ0JGTKntZSib/YADbnnm7 fDIE/MsbPN5GumUO9yHOI+o0kV6+YO0EizMl+UwKHqqq6eMN/HnULD/pdIbYa11+oJcx Rh7Z48XFAl0LbnzephUGmh72MZJU3qKLWYQTO4UC1jnFQ8O15wfjxpnVBvnmeaDqAB2J HfaTeujmJTDIlZLgUB9mYeOnfBamc67621GJVFVj6FE6X2MENKCMNx067H/xvxVQGFmV Ip3LtgUrRSMd0Kf/cXvY729KEQzPpmBXMDWmiB48WfeRLtqyB2hbDYhJbS3WpelhXzqC /WNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=bDm1xlTeJ62qRqjr/MjwxR+LT5/CX/cKG3RA29L+Igk=; fh=wmEYhVDgElv5P+H7EeSZNVHpaLf+pOj+ANCTkl8B294=; b=TwI7plYld9dCXmGd7RZVg4bQtHs3MIyRouiBphOol5bsq31VuUXV4kRlOapX31hsve N+23C8r8aL2fsUBkNn4KvpCvlApegDOJMOz8TDMPotx2q1VzeCFjJkF+2M11e60NilOY 6PIbuxDYxXOrcueVIHu4qYpma9V4nrzDRCP8LIjTces8wBjaPtNZ3C5jrjlkQzurUOE0 xVcL0N7v429H068T5FY4+1jBkIocoCGF7b8XVy6N+F9Y6NPeDifxrVEuveZCSpu6aItX ia3Zdb7GpoCiJH3jNmipmst8SiAeRr6DYnOJ4+9H1IO8CsD2L+mgWwydPOwb1Fb26cAe SnDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fq1e25n7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-161212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id md9-20020a170906ae8900b00a58b520eb13si3735626ejb.193.2024.04.27.18.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 18:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fq1e25n7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-161212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 67BC91F21B2C for ; Sun, 28 Apr 2024 01:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E50510E3; Sun, 28 Apr 2024 01:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fq1e25n7" Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68D79A55 for ; Sun, 28 Apr 2024 01:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714267448; cv=none; b=DHluicOwfPtMufVHF6pjPInN7OfU8CCxZl92WgcUGl6wGlQQebEr9h/YOaV0z8tfrCq1h7R/DX+dlSqp5aCUU3Mzw8AYnKdg0qFGRUuIp0UruIGjBLbovqms1gFCwlIL5VDjxF7/OtJk/pCaSth2ay7/G/ATBBV/PGF39cmlrbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714267448; c=relaxed/simple; bh=YYjc/gR266GAgpt5VKOGmMF4sTUI7FY6TAnxvrckVPs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NWFIGQze2dNoaflV21FPwvv/3EmAXspMJFaqfBrctF/kOhX8HXoOFFMDaRTr2N0Ww3eOKErOVruGCqyHCJX0HDMZUpXGwUgv1vx7JpJIGKJOAKj2c7k6cTxP0hETDBBpit/4AKhdz7pTVtDPBsn2vxwTKD+SO9E9ly4NWP3se2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fq1e25n7; arc=none smtp.client-ip=209.85.222.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-7efcdb73992so491048241.0 for ; Sat, 27 Apr 2024 18:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714267445; x=1714872245; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bDm1xlTeJ62qRqjr/MjwxR+LT5/CX/cKG3RA29L+Igk=; b=fq1e25n7MBBoCrqRV/xbUpqR6l3wHC9FasMAqJ2nfilES1TaP+4lImMvVM6/wPsm9S TJ7oOPhuMIbLBRkucMUHtjsuO+aeC8JR9HhG+gvhkELDHBO3pJ8c9wP3p6Oe/FkK8qoU Gd1f6fTAuf0eVbZEBmnpME5GF09Y6UUO1SiWLeEm8PnRbDFhmx8PTSzlYG1Py5XBSWIy HQu67UbnLGJlyVgrxcwaYG4k46Xe4BZ4TuSvcToypdu/s02G5nu04UXysreLWUGChzH1 r9+KnL7P0cmk0hhhreUwfyRC/Oc+aBjpGa11t5txOH/ag9A2Qz4EbfElkBm5KwXRCy+K 5i3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714267445; x=1714872245; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bDm1xlTeJ62qRqjr/MjwxR+LT5/CX/cKG3RA29L+Igk=; b=PysTx6BvOuFARKgk2N81pBRrFwtT4AlK/UT/KIukdFrK91aCWNiLAlXFbs3vTUsfjO 8bgKSY7YQ4wSBAR8GJcjDvtRFRcr22cKCEPtTz8R7pIvesqN4RUksX4wYYwqMLB1xnLV AeUo4ELP9NjYbxlvxZ2Eod7+QiJxpFnbRhHrHVUv4niLRabmc8khOq605EOt7KYvbde1 abQz/NmcBA36w6KfDcBM3U7MlYDi8izkL2b3DrnFtKHt4Hxi5EyjrSiPf103y4JwEdHA b07zePv7rLUBDwDmd8LZ5s/Wq+04dmYwJOKF/8SymdUNpsRJxduHRRbBf0C6I255qL92 kRAg== X-Forwarded-Encrypted: i=1; AJvYcCXNu1sUXVLzdlU9Uy/TkCcyaPsAUaP0N0OE+3PYWP5B5tq4d6IlwujTii2W68mk7EvZAMemJgQHCDkw2WZIusEW7gZjmdVKLqFU6qvB X-Gm-Message-State: AOJu0Yy7IKgqByCrcy09KrX+X9oYZVm+KQ0w5iSLTe3nTRmpeYlv1ts3 ZPKc3jR4Z2BnqwmOCApGe7Bx+hbHClcVbgJHvh/c6FSBgfGfrGN+DeZw5UKxYEfTNLaEm6WAbU2 CjRhpY76eKc/GMRBwhtfud/pCq+I= X-Received: by 2002:a67:f707:0:b0:47b:6d0b:e893 with SMTP id m7-20020a67f707000000b0047b6d0be893mr6529902vso.28.1714267445312; Sat, 27 Apr 2024 18:24:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240409203411.1885121-1-jaegeuk@kernel.org> <20240409203411.1885121-3-jaegeuk@kernel.org> <050a93dc-d9a8-44bd-9a83-83718e95f04d@kernel.org> <49a4cc15-299f-432c-85c7-ab1b1daaaad1@kernel.org> In-Reply-To: <49a4cc15-299f-432c-85c7-ab1b1daaaad1@kernel.org> From: Daeho Jeong Date: Sat, 27 Apr 2024 18:23:54 -0700 Message-ID: Subject: Re: [f2fs-dev] [PATCH 3/3] f2fs: fix false alarm on invalid block address To: Chao Yu Cc: Juhyung Park , Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 25, 2024 at 12:30=E2=80=AFAM Chao Yu wrote: > > On 2024/4/19 18:27, Juhyung Park wrote: > > On Sat, Apr 13, 2024 at 5:57=E2=80=AFAM Jaegeuk Kim wrote: > >> > >> On 04/11, Chao Yu wrote: > >>> On 2024/4/10 4:34, Jaegeuk Kim wrote: > >>>> f2fs_ra_meta_pages can try to read ahead on invalid block address wh= ich is > >>>> not the corruption case. > >>> > >>> In which case we will read ahead invalid meta pages? recovery w/ META= _POR? > > > > In my case, it seems like it's META_SIT, and it's triggered right after= mount. > > Ah, I see, actually it hits at this case, thanks for the information. > > Thanks, > > > fsck detects invalid_blkaddr, and when the kernel mounts it, it > > immediately flags invalid_blkaddr again: > > > > [ 6.333498] init: [libfs_mgr] Running /system/bin/fsck.f2fs -a -c > > 10000 --debug-cache /dev/block/sda13 > > [ 6.337671] fsck.f2fs: Info: Fix the reported corruption. > > [ 6.337947] fsck.f2fs: Info: not exist /proc/version! > > [ 6.338010] fsck.f2fs: Info: can't find /sys, assuming normal block = device > > [ 6.338294] fsck.f2fs: Info: MKFS version > > [ 6.338319] fsck.f2fs: "5.10.160-android12-9-ge5cfec41c8e2" > > [ 6.338366] fsck.f2fs: Info: FSCK version > > [ 6.338380] fsck.f2fs: from "5.10-arter97" > > [ 6.338393] fsck.f2fs: to "5.10-arter97" > > [ 6.338414] fsck.f2fs: Info: superblock features =3D 1499 : encrypt > > verity extra_attr project_quota quota_ino casefold > > [ 6.338429] fsck.f2fs: Info: superblock encrypt level =3D 0, salt = =3D > > 00000000000000000000000000000000 > > [ 6.338442] fsck.f2fs: Info: checkpoint stop reason: shutdown(180) > > [ 6.338455] fsck.f2fs: Info: fs errors: invalid_blkaddr > > [ 6.338468] fsck.f2fs: Info: Segments per section =3D 1 > > [ 6.338480] fsck.f2fs: Info: Sections per zone =3D 1 > > [ 6.338492] fsck.f2fs: Info: total FS sectors =3D 58971571 (230357 M= B) > > [ 6.340599] fsck.f2fs: Info: CKPT version =3D 2b7e3b29 > > [ 6.340620] fsck.f2fs: Info: version timestamp cur: 19789296, prev: = 18407008 > > [ 6.677041] fsck.f2fs: Info: checkpoint state =3D 46 : crc > > compacted_summary orphan_inodes sudden-power-off > > [ 6.677052] fsck.f2fs: [FSCK] Check node 1 / 712937 (0.00%) > > [ 8.997922] fsck.f2fs: [FSCK] Check node 71294 / 712937 (10.00%) > > [ 10.629205] fsck.f2fs: [FSCK] Check node 142587 / 712937 (20.00%) > > [ 12.278186] fsck.f2fs: [FSCK] Check node 213880 / 712937 (30.00%) > > [ 13.768177] fsck.f2fs: [FSCK] Check node 285173 / 712937 (40.00%) > > [ 17.446971] fsck.f2fs: [FSCK] Check node 356466 / 712937 (50.00%) > > [ 19.891623] fsck.f2fs: [FSCK] Check node 427759 / 712937 (60.00%) > > [ 23.251327] fsck.f2fs: [FSCK] Check node 499052 / 712937 (70.00%) > > [ 28.493457] fsck.f2fs: [FSCK] Check node 570345 / 712937 (80.00%) > > [ 29.640800] fsck.f2fs: [FSCK] Check node 641638 / 712937 (90.00%) > > [ 30.718347] fsck.f2fs: [FSCK] Check node 712931 / 712937 (100.00%) > > [ 30.724176] fsck.f2fs: > > [ 30.737160] fsck.f2fs: [FSCK] Max image size: 167506 MB, Free space:= 62850 MB > > [ 30.737164] fsck.f2fs: [FSCK] Unreachable nat entries > > [Ok..] [0x0] > > [ 30.737638] fsck.f2fs: [FSCK] SIT valid block bitmap checking > > [Ok..] > > [ 30.737640] fsck.f2fs: [FSCK] Hard link checking for regular file > > [Ok..] [0xd] > > [ 30.737641] fsck.f2fs: [FSCK] valid_block_count matching with CP > > [Ok..] [0x28b98e6] > > [ 30.737644] fsck.f2fs: [FSCK] valid_node_count matching with CP (de > > lookup) [Ok..] [0xae0e9] > > [ 30.737646] fsck.f2fs: [FSCK] valid_node_count matching with CP > > (nat lookup) [Ok..] [0xae0e9] > > [ 30.737647] fsck.f2fs: [FSCK] valid_inode_count matched with CP > > [Ok..] [0xa74a3] > > [ 30.737649] fsck.f2fs: [FSCK] free segment_count matched with CP > > [Ok..] [0x7aa3] > > [ 30.737662] fsck.f2fs: [FSCK] next block offset is free > > [Ok..] > > [ 30.737663] fsck.f2fs: [FSCK] fixing SIT types > > [ 30.737867] fsck.f2fs: [FSCK] other corrupted bugs > > [Ok..] > > [ 30.737893] fsck.f2fs: [update_superblock: 765] Info: Done to > > update superblock > > [ 30.960610] fsck.f2fs: > > [ 30.960618] fsck.f2fs: Done: 24.622956 secs > > [ 30.960620] fsck.f2fs: > > [ 30.960622] fsck.f2fs: c, u, RA, CH, CM, Repl=3D > > [ 30.960627] fsck.f2fs: 10000 10000 43600517 42605434 995083 985083 > > [ 30.963274] F2FS-fs (sda13): Using encoding defined by superblock: > > utf8-12.1.0 with flags 0x0 > > [ 30.995360] __f2fs_is_valid_blkaddr: type=3D2 > > > > (Manually added that print ^) > > > > [ 30.995369] ------------[ cut here ]------------ > > [ 30.995375] WARNING: CPU: 7 PID: 1 at f2fs_handle_error+0x18/0x3c > > [ 30.995378] CPU: 7 PID: 1 Comm: init Tainted: G S W > > 5.10.209-arter97-r15-kernelsu-g0867d0e4f1d2 #6 > > [ 30.995379] Hardware name: Qualcomm Technologies, Inc. Cape QRD > > with PM8010 (DT) > > [ 30.995380] pstate: 22400005 (nzCv daif +PAN -UAO +TCO BTYPE=3D--) > > [ 30.995382] pc : f2fs_handle_error+0x18/0x3c > > [ 30.995384] lr : __f2fs_is_valid_blkaddr+0x2a4/0x2b0 > > [ 30.995385] sp : ffffff80209e79b0 > > [ 30.995386] x29: ffffff80209e79b0 x28: 0000000000000037 > > [ 30.995388] x27: 00000000000001c7 x26: 0000000020120121 > > [ 30.995389] x25: 00000000000000d9 x24: 0000000000000000 > > [ 30.995390] x23: ffffffff00f1a700 x22: 0000000000000828 > > [ 30.995391] x21: ffffff80462aa000 x20: ffffff80462aa000 > > [ 30.995392] x19: 0000000000000002 x18: ffffffffffffffff > > [ 30.995393] x17: 0000000000000000 x16: 00000000ffff0000 > > [ 30.995394] x15: 0000000000000004 x14: ffffffd1675ac6d0 > > [ 30.995395] x13: 0000000000000003 x12: 0000000000000003 > > [ 30.995396] x11: 00000000ffffffff x10: 0000000000000000 > > [ 30.995397] x9 : 0000000100000001 x8 : 0000000100000000 > > [ 30.995398] x7 : 64696c61765f7369 x6 : ffffffd1681279e8 > > [ 30.995399] x5 : 000000000000001f x4 : 0000000000000001 > > [ 30.995400] x3 : 0000000000000000 x2 : ffffff89f03dedc8 > > [ 30.995401] x1 : 0000000000000002 x0 : ffffff80462aa000 > > [ 30.995403] Call trace: > > [ 30.995404] f2fs_handle_error+0x18/0x3c > > [ 30.995405] __f2fs_is_valid_blkaddr+0x2a4/0x2b0 > > [ 30.995406] f2fs_is_valid_blkaddr+0x10/0x20 > > [ 30.995407] f2fs_ra_meta_pages+0xe0/0x230 > > [ 30.995409] build_sit_entries+0xa8/0x580 > > [ 30.995411] f2fs_build_segment_manager+0x124/0x170 > > [ 30.995412] f2fs_fill_super+0x78c/0xd1c > > [ 30.995415] mount_bdev+0x168/0x1ac > > [ 30.995416] f2fs_mount+0x18/0x24 > > [ 30.995418] legacy_get_tree.llvm.9147845779559715083+0x30/0x5c > > [ 30.995419] vfs_get_tree+0x30/0xe0 > > [ 30.995421] do_new_mount+0x140/0x358 > > [ 30.995422] path_mount+0x1fc/0x4e8 > > [ 30.995423] __arm64_sys_mount+0x150/0x294 > > [ 30.995425] el0_svc_common.llvm.15698454952154965787+0xa8/0x138 > > [ 30.995426] do_el0_svc+0x24/0x90 > > [ 30.995429] el0_svc+0x10/0x1c > > [ 30.995430] el0_sync_handler+0xcc/0xe4 > > [ 30.995432] el0_sync+0x1a0/0x1c0 > > [ 30.995433] ---[ end trace 3b83295e0cdac94e ]--- > > [ 31.005011] F2FS-fs (sda13): Mounted with checkpoint version =3D 2b7= e3b29 > > [ 31.005176] init: [libfs_mgr] > > __mount(source=3D/dev/block/bootdevice/by-name/userdata,target=3D/data,= type=3Df2fs)=3D0: > > Success > > [ 31.007749] init: Userdata mounted using /vendor/etc/fstab.qcom resu= lt : 0 > > > > > > I was bisecting a long boot time (24 additional seconds) issue, which > > is always reproducible, and found commit 31f85ccc84b8 ("f2fs: unify > > the error handling of f2fs_is_valid_blkaddr") to be causing it. > > > > I'll just revert that patch locally. Seems like Jaegeuk's dev branch > > doesn't have the fix for this specifically yet. > > > > Thanks. > > > >> > >> I was trying to debug another issue, but found the root cause. Let me = drop this > >> patch. > >> > >>> > >>> Thanks, > >>> > >>>> > >>>> Fixes: 31f85ccc84b8 ("f2fs: unify the error handling of f2fs_is_vali= d_blkaddr") > >>>> Signed-off-by: Jaegeuk Kim > >>>> --- > >>>> fs/f2fs/checkpoint.c | 9 +++++---- > >>>> 1 file changed, 5 insertions(+), 4 deletions(-) > >>>> > >>>> diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c > >>>> index eac698b8dd38..b01320502624 100644 > >>>> --- a/fs/f2fs/checkpoint.c > >>>> +++ b/fs/f2fs/checkpoint.c > >>>> @@ -179,22 +179,22 @@ static bool __f2fs_is_valid_blkaddr(struct f2f= s_sb_info *sbi, > >>>> break; > >>>> case META_SIT: > >>>> if (unlikely(blkaddr >=3D SIT_BLK_CNT(sbi))) > >>>> - goto err; > >>>> + goto check_only; > >>>> break; > >>>> case META_SSA: > >>>> if (unlikely(blkaddr >=3D MAIN_BLKADDR(sbi) || > >>>> blkaddr < SM_I(sbi)->ssa_blkaddr)) > >>>> - goto err; > >>>> + goto check_only; > >>>> break; > >>>> case META_CP: > >>>> if (unlikely(blkaddr >=3D SIT_I(sbi)->sit_base_addr || > >>>> blkaddr < __start_cp_addr(sbi))) > >>>> - goto err; > >>>> + goto check_only; > >>>> break; > >>>> case META_POR: > >>>> if (unlikely(blkaddr >=3D MAX_BLKADDR(sbi) || > >>>> blkaddr < MAIN_BLKADDR(sbi))) > >>>> - goto err; > >>>> + goto check_only; > >>>> break; > >>>> case DATA_GENERIC: > >>>> case DATA_GENERIC_ENHANCE: > >>>> @@ -228,6 +228,7 @@ static bool __f2fs_is_valid_blkaddr(struct f2fs_= sb_info *sbi, > >>>> return true; > >>>> err: > >>>> f2fs_handle_error(sbi, ERROR_INVALID_BLKADDR); > >>>> +check_only: > >>>> return false; > >>>> } > >> > >> > >> _______________________________________________ > >> Linux-f2fs-devel mailing list > >> Linux-f2fs-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel I have a question. Is it okay for META_GENERIC?