Whamcloud - gitweb
LU-2513 osc: compute grant targets in bytes
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 28 Feb 2013 09:48:13 +0000 (03:48 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Mar 2013 18:15:24 +0000 (14:15 -0400)
commit1f12a4c87114106ff7e8eff06b3883146f8664ba
treec1ff8e22e521f0f241421a164f5c9cdd9909ced1
parentc2e280ff638d3838f5a24aba18d13fa502093bb7
LU-2513 osc: compute grant targets in bytes

In osc_shrink_grant() and osc_shrink_grant_to_target() convert page
unit target values to bytes before comparing to cl_avail_grant.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ie8e6e8b4b3245efa3b14777608f3a48bbab7e4e2
Reviewed-on: http://review.whamcloud.com/5495
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osc/osc_internal.h
lustre/osc/osc_request.c