Whamcloud - gitweb
LU-10467 llite: clean up pcc_layout_wait() 03/38403/3
authorMr NeilBrown <neilb@suse.de>
Tue, 28 Apr 2020 23:27:51 +0000 (09:27 +1000)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:39:17 +0000 (05:39 +0000)
commitc5a311781fc60c9a91483b737d3f59096949439e
treea08891af685a5049b3a70934513ecc22ee15b49f
parentd9ceaf48c61cfbe1c600804d6f840b21bc000a83
LU-10467 llite: clean up pcc_layout_wait()

pcc_layout_wait() contains a pointless while loop (and an unnecessary
blank line) and is a trivial function that is only called once.

So move the code into __pcc_layout_invalidate(), remove the while
loop, and generally tidy up.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I4a7c721a562682906dec4996bfbdad03e26a01dd
Reviewed-on: https://review.whamcloud.com/38403
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/pcc.c