GFS2: Fix case where reservation finished at end of rgrp
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 7 Aug 2012 12:47:12 +0000 (13:47 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:03 +0000 (10:47 +0100)
commit5d50d5324612d28c47b9361e5424f13a19c888cd
treed4cfa082e5d63e3e6017b7a41a9d7b005e9d875a
parent24d634e8f3b43fe2eb7c7d66567de7aba8edc308
GFS2: Fix case where reservation finished at end of rgrp

One corner case which the original patch failed to take into
account was when there is a reservation which ended such that
the following block was one beyond the end of the rgrp in
question. This extra test fixes that case.

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