]> git.baikalelectronics.ru Git - kernel.git/commit
jfs: Several bugs in jfs_freeze() and jfs_unfreeze()
authorVahram Martirosyan <vmartirosyan@gmail.com>
Fri, 24 May 2013 08:57:12 +0000 (13:57 +0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 24 May 2013 21:03:42 +0000 (16:03 -0500)
commitd11642ff465fdc49b48a8377997a28ef940a54a5
tree1c52287d580870e8bec478aa698936d50d5d0a56
parentf9a816200e0836c4bb7b016eb4e59d4e11f44a2e
jfs: Several bugs in jfs_freeze() and jfs_unfreeze()

The mentioned functions do not pay attention to the error codes returned
by the functions updateSuper(), lmLogInit() and lmLogShutdown(). It brings
to system crash later when writing to log.

The patch adds corresponding code to check and return the error codes
and to print correct error messages in case of errors.

Found by Linux File System Verification project (linuxtesting.org).

Signed-off-by: Vahram Martirosyan <vahram.martirosyan@linuxtesting.org>
Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/super.c