f2fs: fix return values from validate superblock
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 17 Mar 2013 08:26:53 +0000 (17:26 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 20 Mar 2013 09:30:15 +0000 (18:30 +0900)
commitc0d39e65ba324390eb0ffb60661ab12104e5fcc7
tree938dce83283d812e69ab3daea6c5f511210b3269
parent7c909772f1222dd82098659da4d0c41d8a051790
f2fs: fix return values from validate superblock

validate super block is not returning with proper values.
When failure from sb_bread it should reflect there is an EIO otherwise
it should return of EINVAL.
Returning, '1' is not conveying proper message as the return type.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/super.c