mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
btrfs: use super write guard in sb_start_write()
Link: https://patch.msgid.link/20251104-work-guards-v1-4-5108ac78a171@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
e79a4512cc
commit
6e5b78cb17
1 changed files with 2 additions and 2 deletions
|
|
@ -4660,12 +4660,12 @@ static int balance_kthread(void *data)
|
|||
struct btrfs_fs_info *fs_info = data;
|
||||
int ret = 0;
|
||||
|
||||
sb_start_write(fs_info->sb);
|
||||
guard(super_write)(fs_info->sb);
|
||||
|
||||
mutex_lock(&fs_info->balance_mutex);
|
||||
if (fs_info->balance_ctl)
|
||||
ret = btrfs_balance(fs_info, fs_info->balance_ctl, NULL);
|
||||
mutex_unlock(&fs_info->balance_mutex);
|
||||
sb_end_write(fs_info->sb);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue