From 55560cb9c2d0c2df1ad55987586d140831a0cce9 Mon Sep 17 00:00:00 2001 From: vs Date: Thu, 23 Jul 2009 22:50:18 +0000 Subject: [PATCH] b=19338 i=tom.wang, tappro take cli->cl_dirty into accounting on osc initialization --- lustre/osc/osc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 1.8.3.1