mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
f2fs: fix missing check for f2fs_unlock_op
This fixes what Chao pointed. Upstream patch should be fine.
Fixes: 8c77bd62d6 ("f2fs: fix quota_sync failure due to f2fs_lock_op")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
parent
8c77bd62d6
commit
a51f842b50
1 changed files with 4 additions and 2 deletions
|
|
@ -1092,7 +1092,8 @@ unlock_continue:
|
|||
set_inode_flag(inode, FI_FIRST_BLOCK_WRITTEN);
|
||||
|
||||
f2fs_put_dnode(&dn);
|
||||
f2fs_unlock_op(sbi);
|
||||
if (!IS_NOQUOTA(inode))
|
||||
f2fs_unlock_op(sbi);
|
||||
|
||||
spin_lock(&fi->i_size_lock);
|
||||
if (fi->last_disk_size < psize)
|
||||
|
|
@ -1118,7 +1119,8 @@ out_put_cic:
|
|||
out_put_dnode:
|
||||
f2fs_put_dnode(&dn);
|
||||
out_unlock_op:
|
||||
f2fs_unlock_op(sbi);
|
||||
if (!IS_NOQUOTA(inode))
|
||||
f2fs_unlock_op(sbi);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue