]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4747197c1db84b0e85b20876240906221021a27d
tree9249794a803c7df5bcef90038199351f14f09b1d
parent40ad5dc47c69286ed5048ab20baa0763d1bdc082
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