X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_hsm_cdt_requests.c;h=71353341dc00a23133523fe44e3b08d110da2a1d;hb=HEAD;hp=66b8191c7662930baad3bc515921c165c2925484;hpb=9e597a09510c2f7bbc98ab0ce2aca2fe21a9ab45;p=fs%2Flustre-release.git diff --git a/lustre/mdt/mdt_hsm_cdt_requests.c b/lustre/mdt/mdt_hsm_cdt_requests.c index 66b8191..e09ab30 100644 --- a/lustre/mdt/mdt_hsm_cdt_requests.c +++ b/lustre/mdt/mdt_hsm_cdt_requests.c @@ -44,9 +44,10 @@ #include "mdt_internal.h" static unsigned int -cdt_request_cookie_hash(struct cfs_hash *hs, const void *key, unsigned int mask) +cdt_request_cookie_hash(struct cfs_hash *hs, const void *key, + const unsigned int bits) { - return cfs_hash_djb2_hash(key, sizeof(u64), mask); + return cfs_hash_djb2_hash(key, sizeof(u64), bits); } static void *cdt_request_cookie_object(struct hlist_node *hnode) @@ -278,7 +279,7 @@ void mdt_cdt_get_request(struct cdt_agent_req *car) kref_get(&car->car_refcount); } -void mdt_cdt_put_request_free(struct kref *kref) +static void mdt_cdt_put_request_free(struct kref *kref) { struct cdt_agent_req *car;