xfs: factor out free space extent length check
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Jun 2015 00:04:42 +0000 (10:04 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 22 Jun 2015 00:04:42 +0000 (10:04 +1000)
The longest extent length checks in xfs_alloc_fix_freelist() are now
essentially identical. Factor them out into a helper function, so we
know they are checking exactly the same thing before and after we
lock the AGF.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc.c

Simple merge