Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2322899rbb; Tue, 27 Feb 2024 19:47:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHbyJoZyvTXZSYbRsEWVxkXU/yV94RYIn7yeNLiuCDdh/dFL/z6ClkICCD7gwBaUY9bkRKfIHsZupmuIIs28hIrcbP8m4jMMEWyb8ckw== X-Google-Smtp-Source: AGHT+IFTWkDaNVoWWWtf+pSkfPxyjXTa5l219mqjxNVR5xC002U/qz6Ga3Gzh9MYgauVpq5sIdH/ X-Received: by 2002:a05:6214:498c:b0:68f:e774:d57a with SMTP id pf12-20020a056214498c00b0068fe774d57amr2818620qvb.27.1709092066175; Tue, 27 Feb 2024 19:47:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709092066; cv=pass; d=google.com; s=arc-20160816; b=iXqaq17khLLUsuLmdyM+MP2O3fv8QPrxEephuPx3aEg1X6m5zshY8ZpmtjI2uGmR2E As9RA3F+TPLzjzfF7WANOEPyRziiPN0OeRiJVh6G5qqlgEq0DRrJ8hg2Lw+dJEzHNEuB 2uGqznBDlggiZaMECKkzaVX1z5Sf4HgLZevKARHJlff1kzLIBQf2vTcU/Hs1dEHsuEb7 Qv85nHSdYpjgZYiAWSDWdOcl8bw8tzZ5rDxNh78tT2ZI+fA1gBnfR0gFhB7KvlkQuKhC EbG0rR2LalGD4RQk11wHwIJhVt7GJcvT4kSxNQwHiZuECl5ZEelbXC+tdaRemPkUJNFg wN0w== 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=+QnH1oJZ3yFoqGeTtQaz7Mg98UaDYu9X6FwsvJH2uCg=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=phzDpDSrGjPl62BEantwjMkQMyc3lhKXlnn9Opz1n5hxtgDjelkMzC6fN2G1EIQysC KA0SrSO/trzArzIpp6IRstvkMfosJgXR0I9Ub55pZvyUkz3ELUZD6VOSLR4dMDEvnFTm RYdDJgaTzeKt6vOIo+26LID+hXU/r/SAWlHEdaJo5/e9bWXuzYgHHHCFkzKTBQQqT+HN /CsAf8JNHEiV+WZ2rjnqSRTfGmYyemmpdUeAxRFMJQNWNdWIGDEovDELTFAhA6wCHe30 ZA/DTbHs/R5Zx5441Vk1ohFHOsgvbvmuUWDCL0J5DlJ7gO0w/ZYX9iGiOrGYiej6GA+a AH5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jDY73s4k; 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-84487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m9-20020a0562141bc900b0068f47ee1c81si8645031qvc.525.2024.02.27.19.47.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 19:47:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jDY73s4k; 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-84487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84487-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E83DF1C262C4 for ; Wed, 28 Feb 2024 03:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B2D720328; Wed, 28 Feb 2024 03:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jDY73s4k" Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (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 E159E2030F for ; Wed, 28 Feb 2024 03:47:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709092060; cv=none; b=QNRy1GvqsssaS/oRa3AylIJgMQsRw5WfQjv5YmFy616Y1B7+ncLvLpV0mGPU1ycI53ND5okczvekwmLcs2WNZMfodBd4x6HbDlejug/xQ+1/9ba5XENyEuPwPe6i9Isv8y7tPoru6Pwov1yqWE3lBTxqU2F9gYFzorg1LWyy4W0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709092060; c=relaxed/simple; bh=hNd1sEyWTTY5ZxqPlN2W7+wtXuPmALSQyS5Oy6bqxsc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=G113WyO9V5XNP9DL3/S+x80LwxPsQyJ0oSKV04nH8NMf2weNA3ADIx6VS0SHJ5sUNrIcsqSMGouCPk4sBzydXZ0QF+jhUdrfcsOxxDPDX355FbMFGqyZRn+4QJSmqyALNNb1xDTwUpAH4jskpxU7SFOyI/3HPEZUeY4WtE228kY= 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=jDY73s4k; arc=none smtp.client-ip=209.85.222.47 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-f47.google.com with SMTP id a1e0cc1a2514c-7da6e0fc90eso253009241.1 for ; Tue, 27 Feb 2024 19:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709092057; x=1709696857; 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=+QnH1oJZ3yFoqGeTtQaz7Mg98UaDYu9X6FwsvJH2uCg=; b=jDY73s4kbsVAWkbZDQ6ZgnCVLqevlTW5+yYEA2GoQLTaOkFMe7JJ9GWy4GDDhWhnmk HSmcNNuhLVKASLfy5tIYBfntosmJyvwIEKnqv5SZfsQHVynzJPRpBATYghG8iYwXxfUC Z8rCQbNdbFwqQvqTEWbBeDpNNVUGTg2RtbRe/mtUQAGlUKR1LJW9OezLUtkhrM/yXsmo APkbE8pJXObD68iD0sJZt6n0jzTV9u26E8rjGiBIhATFxpilqNNIIp0fG0mswcwgkVe4 lDGuaSCzgxMqm8uUa2MAD4a42xc4DeByGpEJE/rmPwcLMlK6SAIuEL6l3fkvC4WLOFnw 6mDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709092057; x=1709696857; 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=+QnH1oJZ3yFoqGeTtQaz7Mg98UaDYu9X6FwsvJH2uCg=; b=HyYK4wOgJfUJ3+xmxHGTZPUErG1RH6w9y66KJf8mPbcBfvdmg3ogsYBVu+lkg9mou2 UCDwvrVT29vWOM8Mv57S5Lp4vWZeTVv3HlnrS9CiAZspxPFTiyVL7HoR3lNibgQ1X/lz KAh6c7seFoEqDZdbJEuQKnDb6n0e2P/6PEn5sFvVznFkRQkhdxfHDfJRTPBYl3u2+hng K5R+mkKKalZRikHAIriXQiznUCmDTmtNa8heQSbi/63yKj8l71KDwrYs9QvqpbaYsApZ pM5AXoHgIBzQajnMDt8d6EsOiXXXyL/JneN4gDh0903Eo1t6T5EPHtSOHQ/6cuBEbaDs F53w== X-Gm-Message-State: AOJu0YzbXDiGBVbhKWBSBs/GPccehjLYZD9YWCPU4JwGdSNl8MeZpc4z PMYdiQsgQN1vMrqCRIH1MwnfmOWyYh56aBYmg4+4uQ77ULxg7zk8Y94GeAqfCRMt+ywRO9XVQh1 z3WJD9oHG4brcdUa6uCkMjnt2r2OU0gmYDag= X-Received: by 2002:a1f:6201:0:b0:4c8:a2c6:c2be with SMTP id w1-20020a1f6201000000b004c8a2c6c2bemr1046000vkb.8.1709092057664; Tue, 27 Feb 2024 19:47:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240223205535.307307-1-jaegeuk@kernel.org> <20240223205535.307307-5-jaegeuk@kernel.org> In-Reply-To: From: Daeho Jeong Date: Tue, 27 Feb 2024 19:47:26 -0800 Message-ID: Subject: Re: [f2fs-dev] [PATCH 5/5] f2fs: allow to mount if cap is 100 To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 2:47=E2=80=AFPM Jaegeuk Kim wr= ote: > > On 02/26, Daeho Jeong wrote: > > On Fri, Feb 23, 2024 at 12:56=E2=80=AFPM Jaegeuk Kim wrote: > > > > > > Don't block mounting the partition, if cap is 100%. > > > > > > Signed-off-by: Jaegeuk Kim > > > --- > > > fs/f2fs/segment.c | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c > > > index 6d586ae8b55f..f11361152d2a 100644 > > > --- a/fs/f2fs/segment.c > > > +++ b/fs/f2fs/segment.c > > > @@ -904,6 +904,9 @@ int f2fs_disable_cp_again(struct f2fs_sb_info *sb= i, block_t unusable) > > > { > > > int ovp_hole_segs =3D > > > (overprovision_segments(sbi) - reserved_segments(sbi)= ); > > > + > > > + if (F2FS_OPTION(sbi).unusable_cap_perc =3D=3D 100) > > > + return 0; > > > > With this, f2fs will not execute GC. What is this 100 > > unusable_cap_perc used for? > > Theoritically, it won't, but I was hitting a GC loop, and I suspected a w= rong > section/segment layout. So, I posted the below, and guess we need this pa= tch > as workaround. > > https://patchwork.kernel.org/project/f2fs/patch/20240224011411.3820719-1-= jaegeuk@kernel.org/ Reviewed-by: Daeho Jeong > > > > > > if (unusable > F2FS_OPTION(sbi).unusable_cap) > > > return -EAGAIN; > > > if (is_sbi_flag_set(sbi, SBI_CP_DISABLED_QUICK) && > > > -- > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > _______________________________________________ > > > Linux-f2fs-devel mailing list > > > Linux-f2fs-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel