Lines Matching refs:rv
108 int rv; in dlm_posix_lock() local
116 rv = -ENOMEM; in dlm_posix_lock()
133 rv = -ENOMEM; in dlm_posix_lock()
149 rv = FILE_LOCK_DEFERRED; in dlm_posix_lock()
158 rv = wait_event_killable(recv_wq, (op->done != 0)); in dlm_posix_lock()
159 if (rv == -ERESTARTSYS) { in dlm_posix_lock()
186 rv = op->info.rv; in dlm_posix_lock()
188 if (!rv) { in dlm_posix_lock()
197 return rv; in dlm_posix_lock()
209 int rv = 0; in dlm_plock_callback() local
219 if (op->info.rv) { in dlm_plock_callback()
220 notify(fl, op->info.rv); in dlm_plock_callback()
239 rv = notify(fl, 0); in dlm_plock_callback()
240 if (rv) { in dlm_plock_callback()
249 return rv; in dlm_plock_callback()
257 int rv; in dlm_posix_unlock() local
266 rv = -ENOMEM; in dlm_posix_unlock()
273 rv = locks_lock_file_wait(file, fl); in dlm_posix_unlock()
274 if (rv == -ENOENT) { in dlm_posix_unlock()
275 rv = 0; in dlm_posix_unlock()
278 if (rv < 0) { in dlm_posix_unlock()
280 rv, (unsigned long long)number); in dlm_posix_unlock()
297 rv = 0; in dlm_posix_unlock()
306 rv = op->info.rv; in dlm_posix_unlock()
308 if (rv == -ENOENT) in dlm_posix_unlock()
309 rv = 0; in dlm_posix_unlock()
316 return rv; in dlm_posix_unlock()
325 int rv; in dlm_posix_get() local
333 rv = -ENOMEM; in dlm_posix_get()
357 rv = op->info.rv; in dlm_posix_get()
360 if (rv == -ENOENT) in dlm_posix_get()
361 rv = 0; in dlm_posix_get()
362 else if (rv > 0) { in dlm_posix_get()
371 rv = 0; in dlm_posix_get()
377 return rv; in dlm_posix_get()
525 int rv; in dlm_plock_init() local
527 rv = misc_register(&plock_dev_misc); in dlm_plock_init()
528 if (rv) in dlm_plock_init()
529 log_print("dlm_plock_init: misc_register failed %d", rv); in dlm_plock_init()
530 return rv; in dlm_plock_init()