diff options
| author | 2026-06-16 16:08:26 +0200 | |
|---|---|---|
| committer | 2026-06-29 10:31:52 +0200 | |
| commit | 6585c5888deee9526d819fa410fa8c12772f42f0 (patch) | |
| tree | 98eb96fa6eade83c428c7083612cd5df33138442 /scripts/Makefile.thinlto | |
| parent | xfs: port to fs_bdev_file_open_by_path() (diff) | |
btrfs: open via dedicated fs bdev helpers
Route the device opens through fs_bdev_file_open_by_path() so each device
is registered against the superblock, and convert the matching releases
to fs_bdev_file_release().
The temporary identification opens that only read the superblock and
close again pass a NULL holder and keep using bdev_fput().
On the close path the superblock is taken from bdev_file->private_data
(the holder set at open) rather than device->fs_info->sb: a mount that
fails before btrfs_init_devices_late() runs leaves device->fs_info NULL,
which close_fs_devices() would otherwise dereference.
Tested-by: syzbot@syzkaller.appspotmail.com
Link: https://patch.msgid.link/20260616-work-super-bdev_holder_global-v2-10-7df6b864028e@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
