]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: clean up kick_flushing_inode_caps()
authorJeff Layton <jlayton@kernel.org>
Tue, 25 Feb 2020 19:49:53 +0000 (11:49 -0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:41 +0000 (12:42 +0200)
commitd4ea09be07b4c9bd1a0fae7580b9ac236b86929c
tree35b74e6c1b2bda8a2758ff12c0d145bf381ae5cc
parentfd474bf988caf4b3cc8eefe194efc73cb9fc1b8a
ceph: clean up kick_flushing_inode_caps()

The last thing that this function does is release i_ceph_lock, so
have the caller do that instead. Add a lockdep assertion to
ensure that the function is always called with i_ceph_lock held.
Change the prototype to take a ceph_inode_info pointer and drop
the separate mdsc argument as we can get that from the session.

While at it, make it non-static.  We'll need this to kick any
flushing caps once the create reply comes in.

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