Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1511458rbb; Mon, 26 Feb 2024 11:34:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWsfFaiGzCxNJktxA4WjdhUZFML8TCR3QD0kC9z/mG5hVCY2cvf4aRVDlAiN8eQeTo29gUip0tccgWgPxyQavaenDbZiMgDzxbpt0o/1Q== X-Google-Smtp-Source: AGHT+IF0ybn7W7x9axWr3zjSHqnUq3A3r78NKwJpGdIdtQd2CKsgrl/HrqjNztcwg0zhpvm1IS8v X-Received: by 2002:a17:907:765b:b0:a43:4a7b:1c7e with SMTP id kj27-20020a170907765b00b00a434a7b1c7emr2541047ejc.52.1708976089407; Mon, 26 Feb 2024 11:34:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708976089; cv=pass; d=google.com; s=arc-20160816; b=Kbk4hsrf/BeLv02h3HsyxMC4zkm6Qo0/bJz/31d14lX4HOfOwfrugCJVr8jY9RrIGi hySN8ZWxh9xe9m9FUuCPVbNmMSF7rAtjTHqPAqfOpo7d0BnEjOTvrjsXd1YZvrMsjb/A wXwBEGW7Bz6oNY8KLpce0uMxGl6mqJxvry6U2PQsjlZNPePc5owGoBfsUOsVVS4LsOtj URXbr3Tsy/ZUMNJrut7TRVSuD+KdsT6eY5FbQ1YQBhmYRCz9yzAlgHTAa+uHTJWu8+Kk x2t5dLxiMNkWS91KQJ69IBWCrNzMgEqVTqzb6XoFG/ElN2ANlffjFtZNY8HxNgNfT4Nc MsOg== 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=OglrNgb8KxWqpi2oIRKvGycThhSHWIKrWgrygyi4MtM=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=tdCFl9AgbUBz142nN1clwSftOq82ldgnlGprKbfzHJaUYNdk9M+zeZvEHx402kDOCg 4XjTcIPeWFT41E+mR8oLNcP6Kk2yccbAfzmoD2w6j3XgnRKDFE/cMVwFv1wtKRkYmjcE 7sTGzaDXvyuEkW/ggOyflAtWLJREKZ9qO0pK1upSAeV6X3vUH8zXmp1yGb7EbR+lnDS3 zR4VqdTg8WUIEMtnAjxRQJlegzVMK0eK9szvqPIujFXZv1DZZzg23r0WbZKIIn/pS2Ha 2eDQgeUalfaQdAXhs5f5pQ7kbATn0x/Y2Njpnd4CeUPaA4PDHPixywShDpMwmS2k1h2e YKBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=evl44Lqn; 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-82246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82246-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j9-20020a170906474900b00a3fcff5d87asi38489ejs.387.2024.02.26.11.34.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:34:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=evl44Lqn; 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-82246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82246-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 031DE1F2407F for ; Mon, 26 Feb 2024 19:34:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E88512FB3A; Mon, 26 Feb 2024 19:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="evl44Lqn" Received: from mail-vk1-f176.google.com (mail-vk1-f176.google.com [209.85.221.176]) (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 20A6122069 for ; Mon, 26 Feb 2024 19:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708976080; cv=none; b=BybV9EiGiqeq7zagbmcKpBVDmGAQLFiMckEgRVsSjpjnyW00GyJDUcCp5TA9wne7vG/FbtOLhFoISoflw0YdHi5RDCkFLgLAcJ9C2597bMMAo1zebJxOFvEn6kcjbPS0SdKHkVzlv7go88JaZ8XFS9l7JEqEt+BwZmT2rTUTGoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708976080; c=relaxed/simple; bh=hWEKAq88fYxNI1hRg1anzj/i0fUllsHeQ+yLt2KGLzw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HQzFLwQPDK+ak97O9wcPgejV9m0K94vNbz+o0fGYgXvgdpSgy4r20uLzukcWnX/BEKqhSgDFqU0fuksWP0naGat5BsmMUWDGPod1c9bPrXef/s39T/UuVVU+5IsWKwQmwm9+sYDW19YImFbo2CSPArDXpl9u2s1jZeH0P/z4kFE= 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=evl44Lqn; arc=none smtp.client-ip=209.85.221.176 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-vk1-f176.google.com with SMTP id 71dfb90a1353d-4c8a8f59ad0so470914e0c.3 for ; Mon, 26 Feb 2024 11:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708976078; x=1709580878; 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=OglrNgb8KxWqpi2oIRKvGycThhSHWIKrWgrygyi4MtM=; b=evl44LqnKAW7iVtv48ofMsqDIjC0bt+/JRM5wILoZ1UN3pZfa0tH1Y4I7cY4QrGtOo XUyxqZPcASAjegp9mM2ETiI9NCjprJKNXPcLVEkad0eSe9C1qfG2ZzfWRHf33diXjI6+ msJZcBZI1iyh5K0c+0NYbiKWNMsxNzanGNy+1gLnGazZeNJPCCji3KUM7TJLoH8npcj1 AzTvyETe6XKb3VxO6GhwSK8t8mdpTyhiCzioTp1xpZfQ+tQ6tVUK29PMMe9R3+yB8zRK hzictgELY+yv3eu6RCfbZ5kmbChLB7Wqp4IIqs1cuiWV1BDDxfQrt34v6UEjq2C6xaob k56w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708976078; x=1709580878; 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=OglrNgb8KxWqpi2oIRKvGycThhSHWIKrWgrygyi4MtM=; b=fNaC4vjBD50xoxnqFR/4CIfy8vJXgh6/nYzHfUPOLtP3/XMVVyo5uGbEmWikLFMSGd zeiJWzeQuP6r+qfNIaJTWfNBu198XSfPmZUkgT/rQhgwgvjio9vT2R4LEuzpdCKRruVh zU2UrTNpRkvxqzqDH6EiDfSsDXkHa4nTJooyjIJroBFQrb8ApkjxqkO8J6OJP4XFwnSg +0N78gbhrbl0KPIFO/hsXwaHQiu24fZOLYqPj5uGhAyvpH8d0AsewKewqJQ6ryDbICTW osX5MrGAPoSaNbUuDmDBc2zWutJfMNRba/fRC7saKonlAP/lEefteHCtf35vVUuRwjup IfsQ== X-Gm-Message-State: AOJu0Yx73ji0ShQFIJo+ofrSd+8Ydx5GVvhLQuZvQOUF3rc4aWEbFjam KZMicXlriR/lwOmhjCN4Dmw9O3Q3l28ZeH1diHakTvNPFkfQfuAZo0x8LdSyNy951x/7Aml3UMP D7EEOKyQBmNKl6NPl9rUA+Qxyu5Q= X-Received: by 2002:a1f:c784:0:b0:4c9:a9c9:4b3b with SMTP id x126-20020a1fc784000000b004c9a9c94b3bmr4166189vkf.9.1708976077978; Mon, 26 Feb 2024 11:34: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: <20240223205535.307307-5-jaegeuk@kernel.org> From: Daeho Jeong Date: Mon, 26 Feb 2024 11:34:27 -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 Fri, Feb 23, 2024 at 12:56=E2=80=AFPM Jaegeuk Kim w= rote: > > 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 *sbi, b= lock_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? > 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