mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-12 05:18:20 +07:00
Btrfs: mnt_drop_write in ioctl_trans_end
Add missing mnt_drop_write to match the mnt_want_write in btrfs_ioctl_trans_start. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
0403e47ee2
commit
cfc8ea8720
@ -1059,6 +1059,8 @@ long btrfs_ioctl_trans_end(struct file *file)
|
|||||||
root->fs_info->open_ioctl_trans--;
|
root->fs_info->open_ioctl_trans--;
|
||||||
mutex_unlock(&root->fs_info->trans_mutex);
|
mutex_unlock(&root->fs_info->trans_mutex);
|
||||||
|
|
||||||
|
mnt_drop_write(file->f_path.mnt);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user