Skip to content

Commit

Permalink
f2fs: fix to call f2fs_unlock_op
Browse files Browse the repository at this point in the history
This patch fixes to call f2fs_unlock_op, which was missing before.

Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Nov 4, 2014
1 parent 9ba69cf commit 13fd8f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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:
Expand Down

0 comments on commit 13fd8f8

Please sign in to comment.