Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to put root inode in error path of fill_super

2014-07-24 Thread Gu Zheng
On 07/25/2014 12:55 PM, Chao Yu wrote: > We should put root inode correctly in error path of fill_super, otherwise we > may encounter a leak case of inode resource. Good catch, and it also fixed the incorrect 'goto'. > > Signed-off-by: Chao Yu Reviewed-by: Gu Zheng > --- > fs/f2fs/super.c

[f2fs-dev] [PATCH 2/2] f2fs: fix to put root inode in error path of fill_super

2014-07-24 Thread Chao Yu
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 --- fs/f2fs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 870fe19..34649aa 1006