From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Daeho Jeong <daeho43@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH 5/5] f2fs: allow to mount if cap is 100
Date: Mon, 26 Feb 2024 14:47:34 -0800 [thread overview]
Message-ID: <Zd0VBo3ilwRq4BJy@google.com> (raw)
In-Reply-To: <CACOAw_xdBY5Rg1J4jUTaH0UxVrdZ+CCVQj72q_cMxyCHuCTy_Q@mail.gmail.com>
On 02/26, Daeho Jeong wrote:
> On Fri, Feb 23, 2024 at 12:56 PM Jaegeuk Kim <jaegeuk@kernel.org> wrote:
> >
> > Don't block mounting the partition, if cap is 100%.
> >
> > Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
> > ---
> > 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, block_t unusable)
> > {
> > int ovp_hole_segs =
> > (overprovision_segments(sbi) - reserved_segments(sbi));
> > +
> > + if (F2FS_OPTION(sbi).unusable_cap_perc == 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 wrong
section/segment layout. So, I posted the below, and guess we need this patch
as workaround.
https://patchwork.kernel.org/project/f2fs/patch/20240224011411.3820719-1-jaegeuk@kernel.org/
>
> > 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
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
WARNING: multiple messages have this Message-ID (diff)
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Daeho Jeong <daeho43@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH 5/5] f2fs: allow to mount if cap is 100
Date: Mon, 26 Feb 2024 14:47:34 -0800 [thread overview]
Message-ID: <Zd0VBo3ilwRq4BJy@google.com> (raw)
In-Reply-To: <CACOAw_xdBY5Rg1J4jUTaH0UxVrdZ+CCVQj72q_cMxyCHuCTy_Q@mail.gmail.com>
On 02/26, Daeho Jeong wrote:
> On Fri, Feb 23, 2024 at 12:56 PM Jaegeuk Kim <jaegeuk@kernel.org> wrote:
> >
> > Don't block mounting the partition, if cap is 100%.
> >
> > Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
> > ---
> > 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, block_t unusable)
> > {
> > int ovp_hole_segs =
> > (overprovision_segments(sbi) - reserved_segments(sbi));
> > +
> > + if (F2FS_OPTION(sbi).unusable_cap_perc == 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 wrong
section/segment layout. So, I posted the below, and guess we need this patch
as workaround.
https://patchwork.kernel.org/project/f2fs/patch/20240224011411.3820719-1-jaegeuk@kernel.org/
>
> > 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
next prev parent reply other threads:[~2024-02-26 22:47 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 20:55 [f2fs-dev] [PATCH 1/5] f2fs: check number of blocks in a current section Jaegeuk Kim
2024-02-23 20:55 ` Jaegeuk Kim
2024-02-23 20:55 ` [f2fs-dev] [PATCH 2/5] f2fs: fix write pointers all the time Jaegeuk Kim
2024-02-23 20:55 ` Jaegeuk Kim
2024-02-26 2:48 ` [f2fs-dev] " Chao Yu
2024-02-26 2:48 ` Chao Yu
2024-02-26 17:33 ` Daeho Jeong
2024-02-26 17:33 ` Daeho Jeong
2024-02-27 1:00 ` Jaegeuk Kim
2024-02-27 1:00 ` Jaegeuk Kim
2024-02-27 0:59 ` [f2fs-dev] [PATCH 2/5 v2] " Jaegeuk Kim
2024-02-27 0:59 ` Jaegeuk Kim
2024-02-27 6:19 ` [f2fs-dev] " Chao Yu
2024-02-27 6:19 ` Chao Yu
2024-02-23 20:55 ` [f2fs-dev] [PATCH 3/5] f2fs: print zone status in string and some log Jaegeuk Kim
2024-02-23 20:55 ` Jaegeuk Kim
2024-02-26 2:54 ` [f2fs-dev] " Chao Yu
2024-02-26 2:54 ` Chao Yu
2024-02-26 19:03 ` Daeho Jeong
2024-02-26 19:03 ` Daeho Jeong
2024-02-26 22:52 ` [f2fs-dev] [PATCH 3/5 v2] " Jaegeuk Kim
2024-02-26 22:52 ` Jaegeuk Kim
2024-02-27 6:26 ` [f2fs-dev] " Chao Yu
2024-02-27 6:26 ` Chao Yu
2024-03-04 17:47 ` [f2fs-dev] [PATCH 3/5] " Jaegeuk Kim
2024-03-04 17:47 ` Jaegeuk Kim
2024-02-23 20:55 ` [f2fs-dev] [PATCH 4/5] f2fs: prevent an f2fs_gc loop during disable_checkpoint Jaegeuk Kim
2024-02-23 20:55 ` Jaegeuk Kim
2024-02-26 2:58 ` [f2fs-dev] " Chao Yu
2024-02-26 2:58 ` Chao Yu
2024-02-26 19:14 ` Daeho Jeong
2024-02-26 19:14 ` Daeho Jeong
2024-02-23 20:55 ` [f2fs-dev] [PATCH 5/5] f2fs: allow to mount if cap is 100 Jaegeuk Kim
2024-02-23 20:55 ` Jaegeuk Kim
2024-02-26 2:59 ` [f2fs-dev] " Chao Yu
2024-02-26 2:59 ` Chao Yu
2024-02-26 19:34 ` Daeho Jeong
2024-02-26 19:34 ` Daeho Jeong
2024-02-26 22:47 ` Jaegeuk Kim [this message]
2024-02-26 22:47 ` Jaegeuk Kim
2024-02-28 3:47 ` Daeho Jeong
2024-02-28 3:47 ` Daeho Jeong
2024-02-26 2:40 ` [f2fs-dev] [PATCH 1/5] f2fs: check number of blocks in a current section Chao Yu
2024-02-26 2:40 ` Chao Yu
2024-02-26 17:17 ` Daeho Jeong
2024-02-26 17:17 ` Daeho Jeong
2024-02-26 23:14 ` [f2fs-dev] [PATCH 1/5 v2] " Jaegeuk Kim
2024-02-26 23:14 ` Jaegeuk Kim
2024-02-27 6:08 ` [f2fs-dev] " Chao Yu
2024-02-27 6:08 ` Chao Yu
2024-02-28 22:50 ` [f2fs-dev] [PATCH 1/5] " patchwork-bot+f2fs
2024-02-28 22:50 ` patchwork-bot+f2fs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zd0VBo3ilwRq4BJy@google.com \
--to=jaegeuk@kernel.org \
--cc=daeho43@gmail.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.