ceph: fix potential use-after-free bug when trimming caps
[platform/kernel/linux-rpi.git] / fs / ceph / mds_client.h
index 0598faa..18b026b 100644 (file)
@@ -541,8 +541,7 @@ extern void ceph_flush_cap_releases(struct ceph_mds_client *mdsc,
 extern void ceph_queue_cap_reclaim_work(struct ceph_mds_client *mdsc);
 extern void ceph_reclaim_caps_nr(struct ceph_mds_client *mdsc, int nr);
 extern int ceph_iterate_session_caps(struct ceph_mds_session *session,
-                                    int (*cb)(struct inode *,
-                                              struct ceph_cap *, void *),
+                                    int (*cb)(struct inode *, int mds, void *),
                                     void *arg);
 extern void ceph_mdsc_pre_umount(struct ceph_mds_client *mdsc);