ceph: split up __finish_cap_flush
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Mar 2020 19:29:34 +0000 (15:29 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Jun 2020 11:22:52 +0000 (13:22 +0200)
commit681ac634883ba162ce5c50c10120c8bf4df81574
tree1923fb976f30f46bca986cb07e2c1e597d8c53d9
parent0a454bdd501ad1aa30bb72e9581efa338ad6ce5c
ceph: split up __finish_cap_flush

This function takes a mdsc argument or ci argument, but if both are
passed in, it ignores the ci arg. Fortunately, nothing does that, but
there's no good reason to have the same function handle both cases.

Also, get rid of some branches and just use |= to set the wake_* vals.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c