Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 752f5439 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Alistair Delva
Browse files

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: default avatarJaegeuk Kim <jaegeuk@google.com>
parent a2038b47
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1093,6 +1093,7 @@ static int f2fs_write_compressed_pages(struct compress_ctx *cc,
		set_inode_flag(inode, FI_FIRST_BLOCK_WRITTEN);

	f2fs_put_dnode(&dn);
	if (!IS_NOQUOTA(inode))
		f2fs_unlock_op(sbi);

	spin_lock(&fi->i_size_lock);
@@ -1119,6 +1120,7 @@ static int f2fs_write_compressed_pages(struct compress_ctx *cc,
out_put_dnode:
	f2fs_put_dnode(&dn);
out_unlock_op:
	if (!IS_NOQUOTA(inode))
		f2fs_unlock_op(sbi);
	return -EAGAIN;
}