GFS2: Add a bug trap in allocation code
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 23 Aug 2010 10:49:34 +0000 (11:49 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 20 Sep 2010 10:18:59 +0000 (11:18 +0100)
commit9a3f236d40a99ea8dca3df40d8ef67631057cad6
tree9249794a803c7df5bcef90038199351f14f09b1d
parent820969f353587281d645735c83c7f07d606e67ba
GFS2: Add a bug trap in allocation code

This adds a check to ensure that if we reach the block allocator
that we don't try and proceed if there is no alloc structure
hanging off the inode. This should only happen if there is a bug
in GFS2. The error return code is distinctive in order that it
will be easily spotted.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c