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)
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>

No differences found