Home
last modified time | relevance | path

Searched refs:num_locks (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/md/
H A Ddm-bio-prison-v1.c28 unsigned int num_locks; member
29 struct prison_region regions[] __counted_by(num_locks);
43 unsigned int i, num_locks; in dm_bio_prison_create() local
46 num_locks = dm_num_hash_locks(); in dm_bio_prison_create()
47 prison = kzalloc_flex(*prison, regions, num_locks); in dm_bio_prison_create()
50 prison->num_locks = num_locks; in dm_bio_prison_create()
52 for (i = 0; i < prison->num_locks; i++) { in dm_bio_prison_create()
120 static inline unsigned int lock_nr(struct dm_cell_key *key, unsigned int num_locks) in lock_nr() argument
123 num_locks); in lock_nr()
182 unsigned l = lock_nr(key, prison->num_locks); in bio_detain()
[all …]
H A Ddm-bufio.c392 unsigned int num_locks; member
394 struct buffer_tree trees[] __counted_by(num_locks);
399 static inline unsigned int cache_index(sector_t block, unsigned int num_locks) in cache_index() argument
401 return dm_hash_locks_index(block, num_locks); in cache_index()
408 return &bc->trees[cache_index(block, bc->num_locks)]; in cache_get_tree()
466 lh->no_previous = cache->num_locks; in lh_init()
517 unsigned int index = cache_index(b, lh->no_previous); /* no_previous is num_locks */ in lh_next()
543 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep) in cache_init() argument
547 bc->num_locks = num_locks; in cache_init()
2504 unsigned int num_locks; dm_bufio_client_create() local
[all...]
/linux/drivers/hwspinlock/
H A Dhwspinlock_internal.h61 int num_locks; member
/linux/fs/ocfs2/dlm/
H A Ddlmrecovery.c1105 BUG_ON(mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS); in dlm_send_mig_lockres_msg()
1106 if (!mres->num_locks) in dlm_send_mig_lockres_msg()
1122 struct_size(mres, ml, mres->num_locks), in dlm_send_mig_lockres_msg()
1162 mres->num_locks = 0; in dlm_init_migratable_lockres()
1209 int lock_num = mres->num_locks; in dlm_add_lock_to_array()
1222 mres->num_locks++; in dlm_add_lock_to_array()
1224 if (mres->num_locks == DLM_MAX_MIGRATABLE_LOCKS) in dlm_add_lock_to_array()
1361 mres->num_locks > DLM_MAX_MIGRATABLE_LOCKS || in dlm_mig_lockres_handler()
1362 be16_to_cpu(msg->data_len) < struct_size(mres, ml, mres->num_locks)) { in dlm_mig_lockres_handler()
1809 mlog(0, "running %d locks for this lockres\n", mres->num_locks); in dlm_process_recovery_data()
[all …]
H A Ddlmcommon.h554 u8 num_locks; // locks sent in this structure member
/linux/drivers/iommu/iommufd/
H A Dpages.c2474 area->num_locks++; in iopt_area_add_access()
2497 area->num_locks++;
2532 WARN_ON(area->num_locks == 0); in iopt_area_remove_access()
2533 area->num_locks--; in iopt_area_remove_access()
/linux/fs/smb/client/
H A Dcifsglob.h1245 atomic_t num_locks;
1234 atomic_t num_locks; global() member
H A Dcifssmb.c2208 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv()
2280 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()
H A Dsmb2pdu.c6514 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks);