aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2020-02-25 11:49:53 -0800
committerIlya Dryomov <idryomov@gmail.com>2020-03-30 12:42:41 +0200
commite8a4d26771547cd690616bb204e0f350c4fa0e09 (patch)
tree35b74e6c1b2bda8a2758ff12c0d145bf381ae5cc /fs/ceph/super.h
parentlibceph: directly skip to the end of redirect reply (diff)
downloadwireguard-linux-e8a4d26771547cd690616bb204e0f350c4fa0e09.tar.xz
wireguard-linux-e8a4d26771547cd690616bb204e0f350c4fa0e09.zip
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 37dc1ac8f6c3..b2711ee56b09 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -1048,6 +1048,8 @@ extern void ceph_early_kick_flushing_caps(struct ceph_mds_client *mdsc,
struct ceph_mds_session *session);
extern void ceph_kick_flushing_caps(struct ceph_mds_client *mdsc,
struct ceph_mds_session *session);
+void ceph_kick_flushing_inode_caps(struct ceph_mds_session *session,
+ struct ceph_inode_info *ci);
extern struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci,
int mds);
extern void ceph_get_cap_refs(struct ceph_inode_info *ci, int caps);