]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Fix infinite loop in rbm_find
authorBob Peterson <rpeterso@redhat.com>
Wed, 12 Sep 2012 13:40:31 +0000 (09:40 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 12 Sep 2012 13:47:52 +0000 (14:47 +0100)
commita8b7d6cb4f01ddffb9e34b5e6dbd029577dc844f
treeac4ad459b1de07ed94d999ebf0a3e6fd124c35af
parentde5b4c791e632495827a9c616ea5596dd6afd829
GFS2: Fix infinite loop in rbm_find

This patch fixes an infinite loop in gfs2_rbm_find that was introduced
by the previous patch. The problem occurred when the length was less
than 3 but the rbm block was byte-aligned, causing it to improperly
return a extent length of zero, which caused it to spin.

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