From: vs Date: Thu, 23 Jul 2009 22:50:18 +0000 (+0000) Subject: b=19338 X-Git-Tag: v1_9_230~49 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=55560cb9c2d0c2df1ad55987586d140831a0cce9 b=19338 i=tom.wang, tappro take cli->cl_dirty into accounting on osc initialization --- diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index a1c16a8..ec73add 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1077,7 +1077,7 @@ static int osc_del_shrink_grant(struct client_obd *client) static void osc_init_grant(struct client_obd *cli, struct obd_connect_data *ocd) { client_obd_list_lock(&cli->cl_loi_list_lock); - cli->cl_avail_grant = ocd->ocd_grant; + cli->cl_avail_grant = ocd->ocd_grant - cli->cl_dirty; client_obd_list_unlock(&cli->cl_loi_list_lock); if (ocd->ocd_connect_flags & OBD_CONNECT_GRANT_SHRINK &&