projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf8e56
)
f2fs: LFS mode does not support ATGC
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 11 Aug 2022 22:53:34 +0000
(15:53 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 30 Aug 2022 04:15:50 +0000
(21:15 -0700)
ATGC is using SSR which violates LFS mode used by zoned device.
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index
2451623
..
fe46248
100644
(file)
--- a/
fs/f2fs/super.c
+++ b/
fs/f2fs/super.c
@@
-1342,6
+1342,11
@@
default_check:
return -EINVAL;
}
+ if (test_opt(sbi, ATGC) && f2fs_lfs_mode(sbi)) {
+ f2fs_err(sbi, "LFS not compatible with ATGC");
+ return -EINVAL;
+ }
+
if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) {
f2fs_err(sbi, "Allow to mount readonly mode only");
return -EROFS;