Lines Matching refs:namelen

73 				unsigned int namelen)  in dlm_mle_equal()  argument
78 if (namelen != mle->mnamelen || in dlm_mle_equal()
79 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal()
95 unsigned int namelen);
100 char *name, unsigned int namelen);
118 const char *name, unsigned int namelen,
270 unsigned int namelen) in dlm_init_mle() argument
301 memcpy(mle->mname, name, namelen); in dlm_init_mle()
302 mle->mnamelen = namelen; in dlm_init_mle()
303 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle()
341 char *name, unsigned int namelen) in dlm_find_mle() argument
349 hash = dlm_lockid_hash(name, namelen); in dlm_find_mle()
352 if (!dlm_mle_equal(dlm, tmpmle, name, namelen)) in dlm_find_mle()
542 const char *name, unsigned int namelen) in dlm_init_lockres() argument
551 memcpy(qname, name, namelen); in dlm_init_lockres()
553 res->lockname.len = namelen; in dlm_init_lockres()
554 res->lockname.hash = dlm_lockid_hash(name, namelen); in dlm_init_lockres()
597 unsigned int namelen) in dlm_new_lockres() argument
609 dlm_init_lockres(dlm, res, name, namelen); in dlm_new_lockres()
720 int namelen, in dlm_get_lock_resource() argument
735 hash = dlm_lockid_hash(lockid, namelen); in dlm_get_lock_resource()
737 mlog(0, "get lockres %s (len %d)\n", lockid, namelen); in dlm_get_lock_resource()
741 tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); in dlm_get_lock_resource()
806 res = dlm_new_lockres(dlm, lockid, namelen); in dlm_get_lock_resource()
831 blocked = dlm_find_mle(dlm, &mle, (char *)lockid, namelen); in dlm_get_lock_resource()
852 dlm->name, namelen, lockid, in dlm_get_lock_resource()
885 dlm->name, namelen, (char *)lockid, bit); in dlm_get_lock_resource()
914 if (dlm_is_recovery_lock(lockid, namelen)) { in dlm_get_lock_resource()
936 dlm->name, namelen, (char *)lockid, bit); in dlm_get_lock_resource()
965 "master is %u, keep going\n", dlm->name, namelen, in dlm_get_lock_resource()
1335 request.namelen = (u8)mle->mnamelen; in dlm_do_master_request()
1336 memcpy(request.name, mle->mname, request.namelen); in dlm_do_master_request()
1426 unsigned int namelen, hash; in dlm_master_request_handler() local
1441 namelen = request->namelen; in dlm_master_request_handler()
1442 hash = dlm_lockid_hash(name, namelen); in dlm_master_request_handler()
1444 if (namelen > DLM_LOCKID_NAME_MAX) { in dlm_master_request_handler()
1451 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_master_request_handler()
1515 found = dlm_find_mle(dlm, &tmpmle, name, namelen); in dlm_master_request_handler()
1576 found = dlm_find_mle(dlm, &tmpmle, name, namelen); in dlm_master_request_handler()
1595 dlm_init_mle(mle, DLM_MLE_BLOCK, dlm, NULL, name, namelen); in dlm_master_request_handler()
1677 unsigned int namelen = res->lockname.len; in dlm_do_assert_master() local
1679 BUG_ON(namelen > O2NM_MAX_NAME_LEN); in dlm_do_assert_master()
1695 namelen, lockname); in dlm_do_assert_master()
1698 assert.namelen = namelen; in dlm_do_assert_master()
1699 memcpy(assert.name, lockname, namelen); in dlm_do_assert_master()
1720 "got %d.\n", namelen, lockname, to, r); in dlm_do_assert_master()
1724 namelen)) { in dlm_do_assert_master()
1737 namelen, lockname, to); in dlm_do_assert_master()
1743 namelen, lockname, to); in dlm_do_assert_master()
1749 namelen, lockname, to); in dlm_do_assert_master()
1784 unsigned int namelen, hash; in dlm_assert_master_handler() local
1793 namelen = assert->namelen; in dlm_assert_master_handler()
1794 hash = dlm_lockid_hash(name, namelen); in dlm_assert_master_handler()
1797 if (namelen > DLM_LOCKID_NAME_MAX) { in dlm_assert_master_handler()
1809 if (!dlm_find_mle(dlm, &mle, name, namelen)) { in dlm_assert_master_handler()
1813 namelen, name); in dlm_assert_master_handler()
1821 namelen, name); in dlm_assert_master_handler()
1834 assert->node_idx, namelen, name, bit, in dlm_assert_master_handler()
1842 dlm->name, namelen, name, in dlm_assert_master_handler()
1847 dlm->name, namelen, name, in dlm_assert_master_handler()
1860 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_assert_master_handler()
1865 "RECOVERING!\n", assert->node_idx, namelen, name); in dlm_assert_master_handler()
1873 assert->node_idx, res->owner, namelen, in dlm_assert_master_handler()
1884 namelen, name); in dlm_assert_master_handler()
1890 res->owner, namelen, name); in dlm_assert_master_handler()
1898 namelen, name); in dlm_assert_master_handler()
1908 mle->master, namelen, name); in dlm_assert_master_handler()
1985 "inuse=%d\n", dlm->name, namelen, name, in dlm_assert_master_handler()
2004 res->owner, namelen, name); in dlm_assert_master_handler()
2025 assert->node_idx, dlm->name, namelen, name); in dlm_assert_master_handler()
2032 dlm->name, namelen, name, assert->node_idx); in dlm_assert_master_handler()
2237 unsigned int namelen; in dlm_drop_lockres_ref() local
2240 namelen = res->lockname.len; in dlm_drop_lockres_ref()
2241 BUG_ON(namelen > O2NM_MAX_NAME_LEN); in dlm_drop_lockres_ref()
2245 deref.namelen = namelen; in dlm_drop_lockres_ref()
2246 memcpy(deref.name, lockname, namelen); in dlm_drop_lockres_ref()
2252 dlm->name, namelen, lockname, ret, res->owner); in dlm_drop_lockres_ref()
2256 dlm->name, namelen, lockname, res->owner, r); in dlm_drop_lockres_ref()
2273 unsigned int namelen; in dlm_deref_lockres_handler() local
2285 namelen = deref->namelen; in dlm_deref_lockres_handler()
2288 if (namelen > DLM_LOCKID_NAME_MAX) { in dlm_deref_lockres_handler()
2297 hash = dlm_lockid_hash(name, namelen); in dlm_deref_lockres_handler()
2300 res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); in dlm_deref_lockres_handler()
2304 dlm->name, namelen, name); in dlm_deref_lockres_handler()
2368 unsigned int namelen; in dlm_deref_lockres_done_handler() local
2377 namelen = deref->namelen; in dlm_deref_lockres_done_handler()
2380 if (namelen > DLM_LOCKID_NAME_MAX) { in dlm_deref_lockres_done_handler()
2389 hash = dlm_lockid_hash(name, namelen); in dlm_deref_lockres_done_handler()
2392 res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); in dlm_deref_lockres_done_handler()
2396 dlm->name, namelen, name); in dlm_deref_lockres_done_handler()
2431 unsigned int namelen; in dlm_drop_lockres_ref_done() local
2434 namelen = res->lockname.len; in dlm_drop_lockres_ref_done()
2435 BUG_ON(namelen > O2NM_MAX_NAME_LEN); in dlm_drop_lockres_ref_done()
2439 deref.namelen = namelen; in dlm_drop_lockres_ref_done()
2440 memcpy(deref.name, lockname, namelen); in dlm_drop_lockres_ref_done()
2446 " to node %u\n", dlm->name, namelen, in dlm_drop_lockres_ref_done()
2451 dlm->name, namelen, lockname, node, r); in dlm_drop_lockres_ref_done()
2565 unsigned int namelen; in dlm_migrate_lockres() local
2575 namelen = res->lockname.len; in dlm_migrate_lockres()
2577 mlog(0, "%s: Migrating %.*s to node %u\n", dlm->name, namelen, name, in dlm_migrate_lockres()
2602 namelen, target, dlm->node_num); in dlm_migrate_lockres()
2764 mlog(0, "%s: Migrating %.*s to %u, returns %d\n", dlm->name, namelen, in dlm_migrate_lockres()
3052 migrate.namelen = res->lockname.len; in dlm_do_migrate_request()
3053 memcpy(migrate.name, res->lockname.name, migrate.namelen); in dlm_do_migrate_request()
3080 migrate.namelen, migrate.name, ret, nodenum); in dlm_do_migrate_request()
3127 unsigned int namelen, hash; in dlm_migrate_request_handler() local
3134 namelen = migrate->namelen; in dlm_migrate_request_handler()
3135 hash = dlm_lockid_hash(name, namelen); in dlm_migrate_request_handler()
3147 res = __dlm_lookup_lockres(dlm, name, namelen, hash); in dlm_migrate_request_handler()
3168 name, namelen, in dlm_migrate_request_handler()
3203 const char *name, unsigned int namelen, in dlm_add_migration_mle() argument
3215 found = dlm_find_mle(dlm, oldmle, (char *)name, namelen); in dlm_add_migration_mle()
3224 namelen, name); in dlm_add_migration_mle()
3235 namelen, name); in dlm_add_migration_mle()
3252 namelen, name, master, in dlm_add_migration_mle()
3260 dlm_init_mle(mle, DLM_MLE_MIGRATION, dlm, res, name, namelen); in dlm_add_migration_mle()