[RHEL7,COMMIT] fs/fuse: remove extra check for empty active_list

Submitted by Konstantin Khorenko on June 15, 2018, 12:06 p.m.

Details

Message ID 201806151206.w5FC6TOC010358@finist_ce7.work
State New
Series "fs/fuse: remove extra check for empty active_list"
Headers show

Commit Message

Konstantin Khorenko June 15, 2018, 12:06 p.m.
The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.9
------>
commit 2abe35d4ec5da20e6052adcc33a19f22ad2dc32a
Author: Pavel Butsykin <pbutsykin@virtuozzo.com>
Date:   Fri Jun 15 15:06:29 2018 +0300

    fs/fuse: remove extra check for empty active_list
    
    Check for empty list is already present in list_splice_tail_init().
    
    Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
    Acked-by: Alexey Kuznetsov <kuznet@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_map.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 8b8d81dae163..e2b02f9863ac 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -1515,8 +1515,7 @@  static void pcs_cs_wakeup(struct pcs_cs * cs)
 
 static int __pcs_cs_still_congested(struct pcs_cs * cs)
 {
-	if (!list_empty(&cs->active_list))
-		list_splice_tail_init(&cs->active_list, &cs->cong_queue);
+	list_splice_tail_init(&cs->active_list, &cs->cong_queue);
 
 	if (list_empty(&cs->cong_queue)) {
 		BUG_ON(cs->cong_queue_len);