Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-12965 obdclass: remove assertion for imp_refcount
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
nodemap_internal.h
diff --git
a/lustre/ptlrpc/nodemap_internal.h
b/lustre/ptlrpc/nodemap_internal.h
index
0676aa7
..
4b8312e
100644
(file)
--- a/
lustre/ptlrpc/nodemap_internal.h
+++ b/
lustre/ptlrpc/nodemap_internal.h
@@
-22,7
+22,7
@@
/*
* Copyright (C) 2013, Trustees of Indiana University
*
/*
* Copyright (C) 2013, Trustees of Indiana University
*
- * Copyright (c) 2013, 201
4
, Intel Corporation.
+ * Copyright (c) 2013, 201
7
, Intel Corporation.
*
* Author: Joshua Walgenbach <jjw@iu.edu>
*/
*
* Author: Joshua Walgenbach <jjw@iu.edu>
*/
@@
-35,12
+35,6
@@
#define DEFAULT_NODEMAP "default"
#define DEFAULT_NODEMAP "default"
-/* Turn on proc debug interface to allow OSS and
- * MDS nodes to configure nodemap independently of
- * MGS (since the nodemap distribution is not written
- * yet */
-#define NODEMAP_PROC_DEBUG 1
-
/* Default nobody uid and gid values */
#define NODEMAP_NOBODY_UID 99
/* Default nobody uid and gid values */
#define NODEMAP_NOBODY_UID 99
@@
-110,6
+104,7
@@
static inline __u32 nm_idx_set_type(unsigned int id, enum nodemap_idx_type t)
return (id & NM_TYPE_MASK) | (t << NM_TYPE_SHIFT);
}
return (id & NM_TYPE_MASK) | (t << NM_TYPE_SHIFT);
}
+void nodemap_config_set_active(struct nodemap_config *config);
struct lu_nodemap *nodemap_create(const char *name,
struct nodemap_config *config,
bool is_default);
struct lu_nodemap *nodemap_create(const char *name,
struct nodemap_config *config,
bool is_default);
@@
-140,8
+135,9
@@
int range_parse_nidstring(char *range_string, lnet_nid_t *start_nid,
lnet_nid_t *end_nid);
void range_init_tree(void);
struct lu_idmap *idmap_create(__u32 client_id, __u32 fs_id);
lnet_nid_t *end_nid);
void range_init_tree(void);
struct lu_idmap *idmap_create(__u32 client_id, __u32 fs_id);
-void idmap_insert(enum nodemap_id_type id_type, struct lu_idmap *idmap,
- struct lu_nodemap *nodemap);
+struct lu_idmap *idmap_insert(enum nodemap_id_type id_type,
+ struct lu_idmap *idmap,
+ struct lu_nodemap *nodemap);
void idmap_delete(enum nodemap_id_type id_type, struct lu_idmap *idmap,
struct lu_nodemap *nodemap);
void idmap_delete_tree(struct lu_nodemap *nodemap);
void idmap_delete(enum nodemap_id_type id_type, struct lu_idmap *idmap,
struct lu_nodemap *nodemap);
void idmap_delete_tree(struct lu_nodemap *nodemap);
@@
-155,6
+151,7
@@
void nm_member_delete_list(struct lu_nodemap *nodemap);
struct lu_nodemap *nodemap_classify_nid(lnet_nid_t nid);
void nm_member_reclassify_nodemap(struct lu_nodemap *nodemap);
void nm_member_revoke_locks(struct lu_nodemap *nodemap);
struct lu_nodemap *nodemap_classify_nid(lnet_nid_t nid);
void nm_member_reclassify_nodemap(struct lu_nodemap *nodemap);
void nm_member_revoke_locks(struct lu_nodemap *nodemap);
+void nm_member_revoke_locks_always(struct lu_nodemap *nodemap);
void nm_member_revoke_all(void);
int nodemap_add_idmap_helper(struct lu_nodemap *nodemap,
void nm_member_revoke_all(void);
int nodemap_add_idmap_helper(struct lu_nodemap *nodemap,
@@
-169,6
+166,9
@@
struct rb_node *nm_rb_next_postorder(const struct rb_node *node);
struct rb_node *nm_rb_first_postorder(const struct rb_root *root);
void nodemap_getref(struct lu_nodemap *nodemap);
void nodemap_putref(struct lu_nodemap *nodemap);
struct rb_node *nm_rb_first_postorder(const struct rb_root *root);
void nodemap_getref(struct lu_nodemap *nodemap);
void nodemap_putref(struct lu_nodemap *nodemap);
+int nm_hash_list_cb(struct cfs_hash *hs, struct cfs_hash_bd *bd,
+ struct hlist_node *hnode,
+ void *nodemap_list_head);
#define nm_rbtree_postorder_for_each_entry_safe(pos, n, \
root, field) \
#define nm_rbtree_postorder_for_each_entry_safe(pos, n, \
root, field) \