Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3621297pxv; Mon, 28 Jun 2021 08:47:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAwUnxIUxUih74Kd8pqDlvENxyR2wtsX8GIrrvJezohvLd/lDjGIULF6dSezkTQtQWB9Xq X-Received: by 2002:a17:907:9711:: with SMTP id jg17mr25365500ejc.106.1624895259413; Mon, 28 Jun 2021 08:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624895259; cv=none; d=google.com; s=arc-20160816; b=MVo65SHrBNcF+s8z6Z7ScnlvjiFlR+a7LyqVdE+wj53l9MmuSrwI5zNyHl1TgMUw5J CXkID0ROWZMMGzHnQcTGw5ZXvwdq7V3gBF9RWsGP9emNbQo1BTIc0bxed5yaQ/LsvkVt YCLFTZ4oftV9YHJwf5P7XqzO31DfZ6+ZDx1umkgz2h1i4gilB41FdhGnWYb/pIUhyAAR y6qQtUi5etwnNH2KKyxn85/8bxnhharYKPIFwf3cXdUbYkB/2XKDUKqfQX0Qvc0fXF1n Du80wGeEFr+vd/F8zdR3Fpp7AAiN3/WBdKMbFtpZRzK4zH14BCDqesDqjoNO+iBnjC0q 58Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=zzn+UPT1O0igeZulo4DiKrHiHsfan3MX+AKChiDi39M=; b=Wy+05boXSBbsWfe1HDjy4RTy8JGrF/zfrO1M9ITYaEXSXEvxNPBfB8cD3ytmpiBVIh yUGNfcnCM7z/I/Z0zG7tIeGSdLPdtAb6JnBnKxRfmUVLpKcEwBfYHRtdjwzHVEi5IbYC osCLNBHpQmV4LvLRZ6J8ITnK7EJTrLKbqMNAyOeDwcgzly+AsP0aHEnnXYWYkococQG4 ZDDkBKKRpgXnF1JYn/QP0u0M4ZEkjH58JaP8ptyw+OL0qjoPyDfvlj9naKsOWUxpR+/W NfY0+dhxDXTjMXf27AyS8pF8CjVnVVrMriVStQy/T/L3Dp6n8LMw6OLhr9p2NYuB1TY7 nduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiJK3qYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hv6si13962297ejc.390.2021.06.28.08.47.15; Mon, 28 Jun 2021 08:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiJK3qYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237574AbhF1Pq3 (ORCPT + 99 others); Mon, 28 Jun 2021 11:46:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:59034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237272AbhF1Ppy (ORCPT ); Mon, 28 Jun 2021 11:45:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F19FA60233; Mon, 28 Jun 2021 15:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624895008; bh=Q+y2V0I7+R8Os23phWa4M7sQFvLHdurvGVi37dulsbs=; h=Subject:To:References:From:Date:In-Reply-To:From; b=FiJK3qYDTJjb8CLuttLCpPWLPBxf/GwueYcY24YSPhQnFw0qCnO+DS5XRGhji+pMA UOXRgTH17a/7L+S6Bt/YWMzjPvIIibpTYJAADMW/keHp8P3fUwWkqwd3ughlPSc4o7 vR+U05nTytSb17INLY4lq39wzNKwHqSozwl/rMHxzwN2HOknrcPi3Z7tROtj8sVxwM +gmrUka8yHz/wyavGSmkbcwUVB5+5AJHYnZU9i7MtMEa0AgFwQjlXXCmsLU/KaLLjp lQXM4sP2Z1KsO5ypFDO+c7fh1begOw86d95ab0/U1RAIp0p+2LRGQ4AwAvOSsO0kZF SmtdIKhLgy19w== Subject: Re: [f2fs-dev] [PATCH] f2fs: remove false alarm on iget failure during GC To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210622202217.3864743-1-jaegeuk@kernel.org> From: Chao Yu Message-ID: Date: Mon, 28 Jun 2021 23:43:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210622202217.3864743-1-jaegeuk@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/23 4:22, Jaegeuk Kim wrote: > This patch removes setting SBI_NEED_FSCK when GC gets an error on f2fs_iget, > since f2fs_iget can give ENOMEM and others by race condition. > If we set this critical fsck flag, we'll get EIO during fsync via the below > code path. > > In f2fs_inplace_write_data(), > > if (is_sbi_flag_set(sbi, SBI_NEED_FSCK) || f2fs_cp_error(sbi)) { > err = -EIO; > goto drop_bio; > } > > Fixes: 9557727876674 ("f2fs: drop inplace IO if fs status is abnormal") > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,