From: Dmitry Eremin Date: Wed, 21 Sep 2016 11:29:29 +0000 (+0300) Subject: LU-8632 osc: remove of usage removed 'page_count' local variable X-Git-Tag: 2.8.59~12 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f2b457a063159e3ae6d4dfe3b86910b3d4e0d8b2 LU-8632 osc: remove of usage removed 'page_count' local variable Address of function 'page_count' is used instead of a local variable which was removed in commit 7f2aae8d80a73de7408668bbe569d5f4d8553efe. Test-Parameters: trivial Change-Id: I92626b27b21c291101299b52b46287262d27a4bd Signed-off-by: Dmitry Eremin Reviewed-on: http://review.whamcloud.com/22654 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin Reviewed-by: James Simmons --- diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index 590f9f9..b684e25 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -2168,7 +2168,6 @@ __must_hold(osc) if (!list_empty(&rpclist)) { osc_object_unlock(osc); - LASSERT(page_count > 0); rc = osc_build_rpc(env, cli, &rpclist, OBD_BRW_READ); LASSERT(list_empty(&rpclist));