X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fnodemap_internal.h;h=f447eefdc10d0874f512ad098af12ee5856b068a;hb=3be9beb00e7cca9d758b364a85537b0631dddc12;hp=d683d0dc51650611a1aa9f5b652c280811f0b43b;hpb=34ba26ea9884df0758f8ec8dd1047b4cf474af09;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/nodemap_internal.h b/lustre/ptlrpc/nodemap_internal.h index d683d0d..f447eef 100644 --- a/lustre/ptlrpc/nodemap_internal.h +++ b/lustre/ptlrpc/nodemap_internal.h @@ -78,34 +78,6 @@ struct lu_idmap { struct rb_node id_fs_to_client; }; -struct nodemap_range_tree { - struct interval_node *nmrt_range_interval_root; - unsigned int nmrt_range_highest_id; -}; - -struct nodemap_config { - /* Highest numerical lu_nodemap.nm_id defined */ - unsigned int nmc_nodemap_highest_id; - - /* Simple flag to determine if nodemaps are active */ - bool nmc_nodemap_is_active; - - /* Pointer to default nodemap as it is needed more often */ - struct lu_nodemap *nmc_default_nodemap; - - /** - * Lock required to access the range tree. - */ - struct rw_semaphore nmc_range_tree_lock; - struct nodemap_range_tree nmc_range_tree; - - /** - * Hash keyed on nodemap name containing all - * nodemaps - */ - struct cfs_hash *nmc_nodemap_hash; -}; - /* first 4 bits of the nodemap_id is the index type */ struct nodemap_key { __u32 nk_nodemap_id; @@ -138,8 +110,6 @@ static inline __u32 nm_idx_set_type(unsigned int id, enum nodemap_idx_type t) return (id & NM_TYPE_MASK) | (t << NM_TYPE_SHIFT); } -struct nodemap_config *nodemap_config_alloc(void); -void nodemap_config_dealloc(struct nodemap_config *config); void nodemap_config_set_active(struct nodemap_config *config); struct lu_nodemap *nodemap_create(const char *name, struct nodemap_config *config,