f2fs: fix to put root inode in error path of fill_super
authorChao Yu <chao2.yu@samsung.com>
Fri, 25 Jul 2014 04:55:09 +0000 (12:55 +0800)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:06 +0000 (18:04 +0800)
commitd1b625e8a112aa149e971c765c043cbd27570c60
treea3bbba20da1a9d19435a81af0f6afd186a62d2e8
parenta321826c95b7e76dcb33470b184a39504e47ca41
f2fs: fix to put root inode in error path of fill_super

We should put root inode correctly in error path of fill_super, otherwise we
may encounter a leak case of inode resource.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c