Andreas Gruenbacher 174d1232eb gfs2: Fix fallocate chunk size
The chunk size of allocations in __gfs2_fallocate is calculated
incorrectly.  The size can collapse, causing __gfs2_fallocate to
allocate one block at a time, which is very inefficient.  This needs
fixing in two places:

In gfs2_quota_lock_check, always set ap->allowed to UINT_MAX to indicate
that there is no quota limit.  This fixes callers that rely on
ap->allowed to be set even when quotas are off.

In __gfs2_fallocate, reset max_blks to UINT_MAX in each iteration of the
loop to make sure that allocation limits from one resource group won't
spill over into another resource group.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2018-03-08 09:26:20 -07:00
..
2016-05-12 22:28:05 -04:00
2016-06-27 09:47:09 -05:00
2018-01-18 14:18:53 -07:00
2016-06-27 09:47:08 -05:00
2018-03-08 09:26:20 -07:00
2018-01-22 07:06:15 -07:00
2018-02-01 11:25:31 -07:00
2018-01-23 07:38:53 -07:00
2018-01-25 10:18:06 -07:00
2018-01-23 07:38:53 -07:00
2018-03-08 09:26:20 -07:00
2017-04-19 08:25:43 -04:00
2012-01-11 09:23:05 +00:00
2017-08-25 18:47:18 -05:00
2015-12-06 21:25:17 -05:00