summaryrefslogtreecommitdiff
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-13 15:54:09 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-13 15:54:09 -0700
commit85bf20d18ac0cf6e729465efcb8758b5db2ec6c2 (patch)
tree82e174c1655e50862ab89993f2955bf954ad469f /fs/f2fs/dir.c
parent526a4045c60fbaede88ec95a69a73059dff02160 (diff)
parent1795cd9b3a91d4b5473c97f491d63892442212ab (diff)
downloadlinux-85bf20d18ac0cf6e729465efcb8758b5db2ec6c2.tar.gz
linux-85bf20d18ac0cf6e729465efcb8758b5db2ec6c2.tar.xz
Merge 3.16-rc5 into usb-next
We want those fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 966acb039e3b..a4addd72ebbd 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -376,11 +376,11 @@ static struct page *init_inode_metadata(struct inode *inode,
put_error:
f2fs_put_page(page, 1);
+error:
/* once the failed inode becomes a bad inode, i_mode is S_IFREG */
truncate_inode_pages(&inode->i_data, 0);
truncate_blocks(inode, 0);
remove_dirty_dir_inode(inode);
-error:
remove_inode_page(inode);
return ERR_PTR(err);
}