diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 1c05d485e019..3b675368762e 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -39,6 +39,9 @@ | |||
39 | 39 | ||
40 | #define DLM_HASH_BUCKETS (PAGE_SIZE / sizeof(struct hlist_head)) | 40 | #define DLM_HASH_BUCKETS (PAGE_SIZE / sizeof(struct hlist_head)) |
41 | 41 | ||
42 | /* Intended to make it easier for us to switch out hash functions */ | ||
43 | #define dlm_lockid_hash(_n, _l) full_name_hash(_n, _l) | ||
44 | |||
42 | enum dlm_ast_type { | 45 | enum dlm_ast_type { |
43 | DLM_AST = 0, | 46 | DLM_AST = 0, |
44 | DLM_BAST, | 47 | DLM_BAST, |
@@ -694,7 +697,8 @@ void __dlm_insert_lockres(struct dlm_ctxt *dlm, | |||
694 | struct dlm_lock_resource *res); | 697 | struct dlm_lock_resource *res); |
695 | struct dlm_lock_resource * __dlm_lookup_lockres(struct dlm_ctxt *dlm, | 698 | struct dlm_lock_resource * __dlm_lookup_lockres(struct dlm_ctxt *dlm, |
696 | const char *name, | 699 | const char *name, |
697 | unsigned int len); | 700 | unsigned int len, |
701 | unsigned int hash); | ||
698 | struct dlm_lock_resource * dlm_lookup_lockres(struct dlm_ctxt *dlm, | 702 | struct dlm_lock_resource * dlm_lookup_lockres(struct dlm_ctxt *dlm, |
699 | const char *name, | 703 | const char *name, |
700 | unsigned int len); | 704 | unsigned int len); |