mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
FROMGIT: f2fs: fix missing check for f2fs_unlock_op
This fixes what Chao pointed. Upstream patch should be fine.
Fixes: 8c77bd62d6e4 ("f2fs: fix quota_sync failure due to f2fs_lock_op")
Change-Id: Ia697c8cf3897895392bbc0364d7d76f16ec9049e
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
committed by
Alistair Delva
parent
a2038b4794
commit
752f543977
@@ -1093,7 +1093,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)
|
||||
@@ -1119,7 +1120,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user