From patchwork Mon Apr 15 09:03:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] fs/fuse kio: fix a typo in worth_to_grow() From: Pavel Butsykin X-Patchwork-Id: 10474 Message-Id: <20190415090401.13342-2-pbutsykin@virtuozzo.com> To: , Cc: azaitsev@virtuozzo.com Date: Mon, 15 Apr 2019 12:03:58 +0300 It was supposed the function returns true if time has passed less than netlat_cutoff since the request was sent. Signed-off-by: Pavel Butsykin --- fs/fuse/kio/pcs/pcs_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c index 817c7d6a9379..0af852615ff4 100644 --- a/fs/fuse/kio/pcs/pcs_map.c +++ b/fs/fuse/kio/pcs/pcs_map.c @@ -1391,7 +1391,7 @@ static int worth_to_grow(struct pcs_int_request *ireq, struct pcs_cs * cs) if (ireq->type == PCS_IREQ_FLUSH) return 0; - return ktime_to_ms(ktime_sub(ktime_get(), ireq->ts_sent)) + cc_from_csset(cs->css)->netlat_cutoff; + return ktime_to_ms(ktime_sub(ktime_get(), ireq->ts_sent)) < cc_from_csset(cs->css)->netlat_cutoff; } static void pcs_cs_deaccount(struct pcs_int_request *ireq, struct pcs_cs * cs, int error)