]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit72d552854b96b3e2a2c547a5e5a798a17dfda650
tree4b50e956385d7bc05dd58de89d4401ca7d6a63e7
parent50adbcb4c4e6c94b3acaad2a5854b6ca57402115
xfs: factor out free space extent length check

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