]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ceph/mds_client.h
ceph: check OSD caps before read/write
[karo-tx-linux.git] / fs / ceph / mds_client.h
index 1875b5d985c6b0df2fbb38e16f39a78ecc76750d..d474141c034ab9e3059fa00bbc623a022e59705f 100644 (file)
@@ -260,6 +260,12 @@ struct ceph_mds_request {
        int r_num_caps;
 };
 
+struct ceph_pool_perm {
+       struct rb_node node;
+       u32 pool;
+       int perm;
+};
+
 /*
  * mds client state
  */
@@ -328,6 +334,9 @@ struct ceph_mds_client {
        spinlock_t        dentry_lru_lock;
        struct list_head  dentry_lru;
        int               num_dentry;
+
+       struct rw_semaphore     pool_perm_rwsem;
+       struct rb_root          pool_perm_tree;
 };
 
 extern const char *ceph_mds_op_name(int op);