ceph: have __mark_caps_flushing return flush_tid
authorJeff Layton <jlayton@kernel.org>
Mon, 8 Jul 2019 16:27:57 +0000 (12:27 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commit9f3345d8ec5e226d116ddb7fb86ee71a08a3b9a7
tree6715a2f2bfa01416d3faf694b583e7af0bb44b64
parent354c63a0033f1ad4bcb208e796f997bfaf946e6d
ceph: have __mark_caps_flushing return flush_tid

Currently, this function returns ci->i_dirty_caps, but the callers have
to check that that isn't 0 before calling this function. Have the
callers grab that value directly out of the inode, and have
__mark_caps_flushing return the flush_tid instead.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c