[1/4] fs/fuse kio: fix a typo in worth_to_grow()

Submitted by Pavel Butsykin on April 15, 2019, 9:03 a.m.

Details

Message ID 20190415090401.13342-2-pbutsykin@virtuozzo.com
State New
Series "KIO performance fixes"
Headers show

Commit Message

Pavel Butsykin April 15, 2019, 9:03 a.m.
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 <pbutsykin@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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)