projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
956fa1d
)
f2fs: skip adding a discard command if exists
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 14 Nov 2023 02:51:57 +0000
(18:51 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 20 Nov 2023 17:00:24 +0000
(09:00 -0800)
When recovering zoned UFS, sometimes we add the same zone to discard multiple
times. Simple workaround is to bypass adding it.
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index 727d016318f985da124966e51fd2d0d14dce5708..f4ffd64b44b2a7abaeeb3b6abfedeb7a21f07900 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-1380,7
+1380,8
@@
static void __insert_discard_cmd(struct f2fs_sb_info *sbi,
p = &(*p)->rb_right;
leftmost = false;
} else {
- f2fs_bug_on(sbi, 1);
+ /* Let's skip to add, if exists */
+ return;
}
}