Whamcloud - gitweb
LU-3421 grant: more aggressively book space for precreate 46/6546/3
authorJohann Lombardi <johann.lombardi@intel.com>
Tue, 4 Jun 2013 15:46:29 +0000 (17:46 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Jul 2013 03:44:26 +0000 (03:44 +0000)
commit863de7db65825b5862459127da1140d3ac5bcc41
tree677c26c913db0f5069fcd447c06dc3a9c2c92b34
parent0aec97df129d2c6263c66454ee9039cd5dbfdf85
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