f2fs: don't reopen the main block device in f2fs_scan_devices
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Jul 2023 08:31:49 +0000 (10:31 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Aug 2023 20:41:08 +0000 (13:41 -0700)
commit51bf8d3c81992ae57beeaf22df78ed7c2782af9d
tree7fb5fe9f5b8770a93580a63dde950ce7b21109fe
parentb5ab3276eb69cacf44ecfb11b2bfab73096ff4e4
f2fs: don't reopen the main block device in f2fs_scan_devices

f2fs_scan_devices reopens the main device since the very beginning, which
has always been useless, and also means that we don't pass the right
holder for the reopen, which now leads to a warning as the core super.c
holder ops aren't passed in for the reopen.

Fixes: 3c62be17d4f5 ("f2fs: support multiple devices")
Fixes: 0718afd47f70 ("block: introduce holder ops")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c