提交 13fd8f89 编写于 作者: J Jaegeuk Kim

f2fs: fix to call f2fs_unlock_op

This patch fixes to call f2fs_unlock_op, which was missing before.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 9ba69cf9
......@@ -494,7 +494,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
/* writepage can convert inline_data under get_donde_of_data */
if (f2fs_has_inline_data(inode)) {
f2fs_put_dnode(&dn);
goto done;
goto unlock_done;
}
count = ADDRS_PER_PAGE(dn.node_page, F2FS_I(inode));
......@@ -510,6 +510,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
f2fs_put_dnode(&dn);
free_next:
err = truncate_inode_blocks(inode, free_from);
unlock_done:
if (lock)
f2fs_unlock_op(sbi);
done:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册