Ext3: add necessary check in case IO error happens
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Sat, 12 Jan 2013 09:22:33 +0000 (01:22 -0800)
committerJan Kara <jack@suse.cz>
Mon, 21 Jan 2013 10:19:56 +0000 (11:19 +0100)
commit61f43e6880dee5983999fe40bf96c1cf43740b4c
tree95ac823e8e7518a8e6fac3a0e2bae4a91a5d6b05
parent8d8759eb488f9e88fa5f976c4fd7ed205661c872
Ext3: add necessary check in case IO error happens

As we know io error may happen when the function 'sb_getblk'
is called.Add necessary check for it

The patch also fix a coding style problem.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/inode.c