diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-10-19 10:43:23 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-04 01:07:30 +0100 |
commit | 13fd8f89f6623b348dfb7ed6dce50fab733f4c91 (patch) | |
tree | a8bc85631fe210619a3bb52fb7091fee6ef4a003 /fs/f2fs/file.c | |
parent | f2fs: avoid to allocate when inline_data was written (diff) | |
download | linux-13fd8f89f6623b348dfb7ed6dce50fab733f4c91.tar.xz linux-13fd8f89f6623b348dfb7ed6dce50fab733f4c91.zip |
f2fs: fix to call f2fs_unlock_op
This patch fixes to call f2fs_unlock_op, which was missing before.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | fs/f2fs/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 456df07f19cb..80d9a0482e7d 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -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: |