* [PATCH] f2fs: merge the two conditions to avoid code duplication
@ 2025-07-23 14:58 mason.zhang
2025-07-24 2:51 ` Chao Yu
2025-07-24 20:30 ` [f2fs-dev] " patchwork-bot+f2fs
0 siblings, 2 replies; 3+ messages in thread
From: mason.zhang @ 2025-07-23 14:58 UTC (permalink / raw)
To: chao; +Cc: linux-f2fs-devel, linux-kernel
No functional changes.
Signed-off-by: mason.zhang <masonzhang.linuxer@gmail.com>
---
fs/f2fs/gc.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 3cb5242f4ddf..2df02e36fd5f 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -278,12 +278,7 @@ static void select_policy(struct f2fs_sb_info *sbi, int gc_type,
{
struct dirty_seglist_info *dirty_i = DIRTY_I(sbi);
- if (p->alloc_mode == SSR) {
- p->gc_mode = GC_GREEDY;
- p->dirty_bitmap = dirty_i->dirty_segmap[type];
- p->max_search = dirty_i->nr_dirty[type];
- p->ofs_unit = 1;
- } else if (p->alloc_mode == AT_SSR) {
+ if (p->alloc_mode == SSR || p->alloc_mode == AT_SSR) {
p->gc_mode = GC_GREEDY;
p->dirty_bitmap = dirty_i->dirty_segmap[type];
p->max_search = dirty_i->nr_dirty[type];
--
2.50.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] f2fs: merge the two conditions to avoid code duplication
2025-07-23 14:58 [PATCH] f2fs: merge the two conditions to avoid code duplication mason.zhang
@ 2025-07-24 2:51 ` Chao Yu
2025-07-24 20:30 ` [f2fs-dev] " patchwork-bot+f2fs
1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2025-07-24 2:51 UTC (permalink / raw)
To: mason.zhang; +Cc: chao, linux-f2fs-devel, linux-kernel
On 7/23/25 22:58, mason.zhang wrote:
> No functional changes.
>
> Signed-off-by: mason.zhang <masonzhang.linuxer@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [f2fs-dev] [PATCH] f2fs: merge the two conditions to avoid code duplication
2025-07-23 14:58 [PATCH] f2fs: merge the two conditions to avoid code duplication mason.zhang
2025-07-24 2:51 ` Chao Yu
@ 2025-07-24 20:30 ` patchwork-bot+f2fs
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+f2fs @ 2025-07-24 20:30 UTC (permalink / raw)
To: mason.zhang; +Cc: chao, linux-kernel, linux-f2fs-devel
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:
On Wed, 23 Jul 2025 22:58:37 +0800 you wrote:
> No functional changes.
>
> Signed-off-by: mason.zhang <masonzhang.linuxer@gmail.com>
> ---
> fs/f2fs/gc.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
Here is the summary with links:
- [f2fs-dev] f2fs: merge the two conditions to avoid code duplication
https://git.kernel.org/jaegeuk/f2fs/c/b93bf64e349b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-24 20:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 14:58 [PATCH] f2fs: merge the two conditions to avoid code duplication mason.zhang
2025-07-24 2:51 ` Chao Yu
2025-07-24 20:30 ` [f2fs-dev] " patchwork-bot+f2fs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).