Whamcloud - gitweb
LU-11264 llapi: reduce llapi_stripe_limit_check() overhead 91/35091/2
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 7 Jun 2019 03:34:49 +0000 (21:34 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jun 2019 03:52:53 +0000 (03:52 +0000)
commit1c8ce141c6b6b621cf0fc89d32e1e7a2db43729d
treede5e4657826c315740ff9d2a0889494e536228a1
parentbf86b80e4eacd0734665aa818d9cdebf0c157ee1
LU-11264 llapi: reduce llapi_stripe_limit_check() overhead

There is no need to check PAGE_SIZE in llapi_stripe_limit_check()
every time, since this cannot change between calls.

Always set errno if an error is returned.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib377c1cc734c9e683f75eeb509e220c4ea3ebbe5
Reviewed-on: https://review.whamcloud.com/35091
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/liblustreapi.c