Whamcloud - gitweb
LU-3421 grant: more aggressively book space for precreate
authorJohann Lombardi <johann.lombardi@intel.com>
Tue, 4 Jun 2013 15:46:29 +0000 (17:46 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Aug 2013 05:52:55 +0000 (01:52 -0400)
commita386655ef78fb619989ccf154f6ce91adfc337c6
tree874189d42c692ca9a9bd79b131a21ab57331a520
parent448a0fb10e2f85b846f213b7a5ed804eac7c0d68
LU-3421 grant: more aggressively book space for precreate

- ofd_grant() should not round sub-block allocation to 0.
- ofd_grant_create() should be more aggressive in reserving space.
  Precreation should try to always have enough grant space to process
  a very large preallocation request.

Signed-off-by: Johann Lombardi <johann.lombardi@intel.com>
Change-Id: I5803b2d5fae216edcaae124d3b50b589c02e7251
Reviewed-on: http://review.whamcloud.com/6546
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_grant.c