JFS: Avoid BUG() on a damaged file system
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Tue, 9 Jan 2007 14:57:34 +0000 (08:57 -0600)
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>
Tue, 9 Jan 2007 14:57:34 +0000 (08:57 -0600)
commit17e6afc75ad0150d265a86a8f155b2871f9c07fe
tree2318ee640e6f6bda3cf19b5bcd3c7da4c9a377cb
parentefa06708fe77190f31bed5c3cb5da49e211240f5
JFS: Avoid BUG() on a damaged file system

On Mon, 2006-12-18 at 19:51 +0100, Eric Sesterhenn wrote:
> hi,
>
> while playing around with fsfuzzer, i got the following oops with jfs:
>
> [  851.804875] BUG at fs/jfs/jfs_xtree.c:760
> assert(!BT_STACK_FULL(btstack))
> [  851.805179] ------------[ cut here ]------------
> [  851.805238] kernel BUG at fs/jfs/jfs_xtree.c:760!

JFS should mark the superblock dirty and return an error rather than
calling BUG().

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_xtree.c