f2fs: fix zoned block device information initialization
authorWenjie Qi <qwjhust@gmail.com>
Sun, 7 Apr 2024 07:21:23 +0000 (15:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Apr 2024 16:17:48 +0000 (16:17 +0000)
commit0f9b12142be1af8555cfe53c6fbecb8e60a40dac
treea33dd58079e5c4ba66e05942bd7a2a8392ad9230
parent197080156f27b6bf8cf198e9313dfbb94769c736
f2fs: fix zoned block device information initialization

If the max open zones of zoned devices are less than
the active logs of F2FS, the device may error due to
insufficient zone resources when multiple active logs
are being written at the same time.

Signed-off-by: Wenjie Qi <qwjhust@gmail.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c