fuse: use list_first_entry() in flush_bg_queue()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 31 Jul 2018 10:25:25 +0000 (13:25 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 28 Sep 2018 14:43:22 +0000 (16:43 +0200)
commite287179afe2190faa7b97915cb89215dde5e044b
treea8c3fa4208c0b65e5524d14446def640ec5e1f09
parent88bc7d5097a11d9bdcf08ecf85c81ba998353437
fuse: use list_first_entry() in flush_bg_queue()

This cleanup patch makes the function to use the primitive
instead of direct dereferencing.

Also, move fiq dereferencing out of cycle, since it's
always constant.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c