mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
f2fs: fix missing unlock(sbi->gc_mutex)
This fixes missing unlock call. Cc: <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
b32e019049
commit
8f31b4665c
1 changed files with 2 additions and 5 deletions
|
|
@ -1457,19 +1457,16 @@ static int f2fs_disable_checkpoint(struct f2fs_sb_info *sbi)
|
|||
|
||||
sbi->sb->s_flags |= SB_ACTIVE;
|
||||
|
||||
mutex_lock(&sbi->gc_mutex);
|
||||
f2fs_update_time(sbi, DISABLE_TIME);
|
||||
|
||||
while (!f2fs_time_over(sbi, DISABLE_TIME)) {
|
||||
mutex_lock(&sbi->gc_mutex);
|
||||
err = f2fs_gc(sbi, true, false, NULL_SEGNO);
|
||||
if (err == -ENODATA)
|
||||
break;
|
||||
if (err && err != -EAGAIN) {
|
||||
mutex_unlock(&sbi->gc_mutex);
|
||||
if (err && err != -EAGAIN)
|
||||
return err;
|
||||
}
|
||||
}
|
||||
mutex_unlock(&sbi->gc_mutex);
|
||||
|
||||
err = sync_filesystem(sbi->sb);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue