Re: [PATCH RFC v2 15/18] f2fs: open via dedicated fs bdev helpers

From: Chao Yu

Date: Tue Jun 16 2026 - 23:17:38 EST


On 6/16/26 22:08, Christian Brauner wrote:
> Route the extra device opens of a multi-device f2fs through
> fs_bdev_file_open_by_path() so each device is registered against the
> superblock, and convert the matching release in destroy_device_list()
> to fs_bdev_file_release(). The first device aliases the main bdev file
> opened by setup_bdev_super() and is already registered through it.
>
> f2fs opened its extra devices without holder ops, so a freeze, sync, or
> removal of one of them was never propagated to the superblock.
> Registering them wires those events up: every device now freezes,
> thaws, syncs, and shuts down the filesystem like the main device does.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner@xxxxxxxxxx>

Acked-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,