Searched refs:lock_size (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/selftests/mm/
H A Dmlock-random-test.c53 unsigned long lock_size = 0; local
61 ret = sscanf(line, "VmLck:\t%8lu kB", &lock_size);
68 return (int)(lock_size << 10);
149 * - choose lock_size randomly but lock_size < alloc_size
150 * - choose start_offset randomly but p+start_offset+lock_size
154 int lock_size = rand() % alloc_size; local
155 int start_offset = rand() % (alloc_size - lock_size);
158 ret = mlock(p + start_offset, lock_size);
160 ret = mlock2_(p + start_offset, lock_size,
215 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) local
[all...]
/linux-master/fs/dlm/
H A Drcom.c585 int lock_size = sizeof(struct dlm_rcom) + sizeof(struct rcom_lock); local
649 if (le16_to_cpu(rc->rc_header.h_length) < lock_size)
667 if (le16_to_cpu(rc->rc_header.h_length) < lock_size)

Completed in 128 milliseconds