Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4607983iob; Sun, 8 May 2022 19:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfiicHPQQG2uhbjxNdA9hsLVgMICSwuzI6nk2T0jRSjK2DjC94G7+wO1DHq0HfSoyrqi4i X-Received: by 2002:a05:6214:1cc4:b0:431:4cbc:1d91 with SMTP id g4-20020a0562141cc400b004314cbc1d91mr11801440qvd.64.1652061802938; Sun, 08 May 2022 19:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652061802; cv=none; d=google.com; s=arc-20160816; b=XcS0Pb6vu0srRYm3pcfu3AuOw6ehCc8Ik4UzU6XFnWZnmRzjVO0I83DtwL13EmImDX 48rk7pueAhOvIg3WaTiO0VkLQkTqS2uViVxkf7vVW5vYOrjFUKHcfmQWwku+vRfFOZU6 WuXxPrc+6AODHkSc4UqQH3LequcVfE3A8ffRHQcvVB/cBBEBm1XT87FlHscjFW+zajO7 88vUKL8KFwiQOc2KvHyKGF5atnQ+LFuQw/wef8OrdVG9TCYidi0XV6NOMHMJ7Bdq52KH R+eBxFJtUdmZj2Ce8fIDA9jbLVVR2s2nL+bJhQosxAzGUmLt2x7SfEJcfUeN/XWbqqJ7 XsMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mbW3K3pqZFX0pT4hbUUYob5XEApkzKf+mkPrbGJaPfk=; b=ygc8tioi4vuef37CqNwJY+ziuxIVeF6DzfBLeEcRzgVYeXvL7zeS48rw0MTmT9TdLs trnrgwreKQeFpwbr/SjkgUi1vdj5bBNiu/I+MSm0KrfoZS88bh1hcQ4gBgYJaj3uOURK aRCy840i0V/2RK8IfoemUa0+op2jZO9E44Vbs0hHkuP/TbExvyRmZqiqYW7sU7y3rhLQ uglvHdU2GYtie5weG5B6fMhkwoPKXN4PImNi382cxHh0TrCRssMBQhlY8r2p0QZEoYGb lZGjkatIikHj+Ds2VNj7GpKSpASANmx95/hFs2H2wpNcaEXUntYVwHEaGAXZxsNU28Pl f34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+BbfqRB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r20-20020ac85c94000000b002f39efcc22asi7486173qta.405.2022.05.08.19.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+BbfqRB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D77D24A912; Sun, 8 May 2022 19:03:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444947AbiEFXY0 (ORCPT + 99 others); Fri, 6 May 2022 19:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355522AbiEFXYX (ORCPT ); Fri, 6 May 2022 19:24:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1042AC63 for ; Fri, 6 May 2022 16:20:36 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 992D961A01 for ; Fri, 6 May 2022 23:20:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3325C385A8; Fri, 6 May 2022 23:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651879234; bh=Equ3KAligNPBOnEusR03evXVwk87qPTr3C3S0lOJka0=; h=From:To:Cc:Subject:Date:From; b=l+BbfqRBpHaBkitbrWhYcbcDmIYXWmiS79QhKnQGE1r4C67IiNKHCk2R/+w/6AAij w9aqr0V23ae2kjED3iyGt9jcoFWJ8B6bM/0UaFmk6dHImdpMebKNPR7p7NKJ/icuWy S9k+FaiPBcAnZx+q9shQAEYkSWaWWTMLn4onwRzzKPALKwKTA7BxFKul/DsT0OC9Uy EaTZ9Xdz/G8aBgRtUpB1DtTpXAEm6GbNyG+UJHnwybwUtbeD/goU1Y0lFQNK/K4Z9X 2OnMr4BD/4CtwntbsAj3VZNrRfovyZ2fWbxVX9JEf6zr2blyUHHPlNPnEYFcaAQ4dS rmjRH+RGfMHTg== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 1/5] f2fs: stop allocating pinned sections if EAGAIN happens Date: Fri, 6 May 2022 16:20:28 -0700 Message-Id: <20220506232032.1264078-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.36.0.512.ge40c2bad7a-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 EAGAIN doesn't guarantee to have a free section. Let's report it. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index e4cf8b7b23aa..b307d96a0a7c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1685,7 +1685,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset, GET_SEC_FROM_SEG(sbi, overprovision_segments(sbi)))) { f2fs_down_write(&sbi->gc_lock); err = f2fs_gc(sbi, true, false, false, NULL_SEGNO); - if (err && err != -ENODATA && err != -EAGAIN) + if (err && err != -ENODATA) goto out_err; } -- 2.36.0.512.ge40c2bad7a-goog