diff options
| author | Florian Albrechtskirchinger <[email protected]> | 2025-03-27 13:31:08 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-03-28 17:51:09 +0000 |
| commit | 7c4cb50e1a39ada75aaaaaedfdaec52d0b8f8bcc (patch) | |
| tree | a7589dbc7fd18da3ca78546d308e79c1edf6948c /scripts/extract-fwblobs | |
| parent | bcachefs: fix logging in journal_entry_err_msg() (diff) | |
| download | kernel-7c4cb50e1a39ada75aaaaaedfdaec52d0b8f8bcc.tar.gz kernel-7c4cb50e1a39ada75aaaaaedfdaec52d0b8f8bcc.zip | |
bcachefs: Fix bch2_fs_get_tree() error path
When a filesystem is mounted read-only, subsequent attempts to mount it
as read-write fail with EBUSY. Previously, the error path in
bch2_fs_get_tree() would unconditionally call __bch2_fs_stop(),
improperly freeing resources for a filesystem that was still actively
mounted. This change modifies the error path to only call
__bch2_fs_stop() if the superblock has no valid root dentry, ensuring
resources are not cleaned up prematurely when the filesystem is in use.
Signed-off-by: Florian Albrechtskirchinger <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions
