mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:40:58 +07:00
remove unlock_kernel() left accidentally
commit337eb00a2c
Push BKL down into ->remount_fs() and commit4aa98cf768
Push BKL down into do_remount_sb() were uncorrectly merged. The former removes one pair of lock/unlock_kernel(), but the latter adds several unlock_kernel(). Finally a few unlock_kernel() calls left. Signed-off-by: J. R. Okajima <hooanon05@yahoo.co.jp> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
210ad6aedb
commit
b0895513f4
12
fs/super.c
12
fs/super.c
@ -545,25 +545,19 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)
|
|||||||
if ((flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY)) {
|
if ((flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY)) {
|
||||||
if (force)
|
if (force)
|
||||||
mark_files_ro(sb);
|
mark_files_ro(sb);
|
||||||
else if (!fs_may_remount_ro(sb)) {
|
else if (!fs_may_remount_ro(sb))
|
||||||
unlock_kernel();
|
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
|
||||||
retval = vfs_dq_off(sb, 1);
|
retval = vfs_dq_off(sb, 1);
|
||||||
if (retval < 0 && retval != -ENOSYS) {
|
if (retval < 0 && retval != -ENOSYS)
|
||||||
unlock_kernel();
|
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
remount_rw = !(flags & MS_RDONLY) && (sb->s_flags & MS_RDONLY);
|
remount_rw = !(flags & MS_RDONLY) && (sb->s_flags & MS_RDONLY);
|
||||||
|
|
||||||
if (sb->s_op->remount_fs) {
|
if (sb->s_op->remount_fs) {
|
||||||
retval = sb->s_op->remount_fs(sb, &flags, data);
|
retval = sb->s_op->remount_fs(sb, &flags, data);
|
||||||
if (retval) {
|
if (retval)
|
||||||
unlock_kernel();
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK);
|
sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK);
|
||||||
if (remount_rw)
|
if (remount_rw)
|
||||||
vfs_dq_quota_on_remount(sb);
|
vfs_dq_quota_on_remount(sb);
|
||||||
|
Loading…
Reference in New Issue
Block a user