xfs: fix potential infinite loop in xfs_iomap_prealloc_size()
authorBrian Foster <bfoster@redhat.com>
Fri, 22 Feb 2013 18:32:56 +0000 (13:32 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 7 Mar 2013 18:21:39 +0000 (12:21 -0600)
If freesp == 0, we could end up in an infinite loop while squashing
the preallocation. Break the loop when we've killed the prealloc
entirely.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found