]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Stop block extents at the end of bitmaps
authorBob Peterson <rpeterso@redhat.com>
Tue, 28 Aug 2012 12:45:56 +0000 (08:45 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 28 Aug 2012 12:36:47 +0000 (13:36 +0100)
commit667314bfaead8bbf7957ec5e613fbb86fd840d91
tree8b4d20def2a6b68c9b9c24faac6d85d039ac5d70
parent9117c89c4316ed7eb45a6f939a33e58bde50d611
GFS2: Stop block extents at the end of bitmaps

This patch stops multiple block allocations if a nonzero
return code is received from gfs2_rbm_from_block. Without
this patch, if enough pressure is put on the file system,
you get a kernel warning quickly followed by:
BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [<ffffffffa04f47e8>] gfs2_alloc_blocks+0x2c8/0x880 [gfs2]
With this patch, things run normally.

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