Lines Matching refs:error

287 	int error;  in gdlm_put_lock()  local
310 error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK, in gdlm_put_lock()
312 if (error) { in gdlm_put_lock()
315 (unsigned long long)gl->gl_name.ln_number, error); in gdlm_put_lock()
501 int error; in sync_unlock() local
503 error = dlm_unlock(ls->ls_dlm, lksb->sb_lkid, 0, lksb, ls); in sync_unlock()
504 if (error) { in sync_unlock()
506 name, lksb->sb_lkid, error); in sync_unlock()
507 return error; in sync_unlock()
525 int error, status; in sync_lock() local
530 error = dlm_lock(ls->ls_dlm, mode, lksb, flags, in sync_lock()
533 if (error) { in sync_lock()
535 name, lksb->sb_lkid, flags, mode, error); in sync_lock()
536 return error; in sync_lock()
585 int i, error; in gfs2_control_func() local
628 error = control_lock(sdp, DLM_LOCK_EX, DLM_LKF_CONVERT|DLM_LKF_VALBLK); in gfs2_control_func()
629 if (error) { in gfs2_control_func()
630 fs_err(sdp, "control lock EX error %d\n", error); in gfs2_control_func()
711 error = control_lock(sdp, DLM_LOCK_NL, flags); in gfs2_control_func()
712 if (error) { in gfs2_control_func()
713 fs_err(sdp, "control lock NL error %d\n", error); in gfs2_control_func()
761 int error; in control_mount() local
771 error = control_lock(sdp, DLM_LOCK_NL, DLM_LKF_VALBLK); in control_mount()
772 if (error) { in control_mount()
773 fs_err(sdp, "control_mount control_lock NL error %d\n", error); in control_mount()
774 return error; in control_mount()
777 error = mounted_lock(sdp, DLM_LOCK_NL, 0); in control_mount()
778 if (error) { in control_mount()
779 fs_err(sdp, "control_mount mounted_lock NL error %d\n", error); in control_mount()
781 return error; in control_mount()
787 error = -EINTR; in control_mount()
797 error = mounted_lock(sdp, DLM_LOCK_NL, DLM_LKF_CONVERT); in control_mount()
798 if (error) in control_mount()
817 error = control_lock(sdp, DLM_LOCK_EX, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE|DLM_LKF_VALBLK); in control_mount()
818 if (error == -EAGAIN) { in control_mount()
820 } else if (error) { in control_mount()
821 fs_err(sdp, "control_mount control_lock EX error %d\n", error); in control_mount()
825 error = mounted_lock(sdp, DLM_LOCK_EX, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE); in control_mount()
826 if (!error) { in control_mount()
829 } else if (error != -EAGAIN) { in control_mount()
830 fs_err(sdp, "control_mount mounted_lock EX error %d\n", error); in control_mount()
834 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE); in control_mount()
835 if (!error) { in control_mount()
840 fs_err(sdp, "control_mount mounted_lock PR error %d\n", error); in control_mount()
861 error = -EINVAL; in control_mount()
876 error = control_lock(sdp, DLM_LOCK_NL, DLM_LKF_CONVERT); in control_mount()
877 if (error) in control_mount()
936 return error; in control_mount()
943 int error; in control_first_done() local
986 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT); in control_first_done()
987 if (error) in control_first_done()
988 fs_err(sdp, "control_first_done mounted PR error %d\n", error); in control_first_done()
990 error = control_lock(sdp, DLM_LOCK_NL, DLM_LKF_CONVERT|DLM_LKF_VALBLK); in control_first_done()
991 if (error) in control_first_done()
992 fs_err(sdp, "control_first_done control NL error %d\n", error); in control_first_done()
994 return error; in control_first_done()
1189 int error, ops_result; in gdlm_mount() local
1206 error = set_recover_size(sdp, NULL, 0); in gdlm_mount()
1207 if (error) in gdlm_mount()
1217 error = -EINVAL; in gdlm_mount()
1230 error = dlm_new_lockspace(fsname, cluster, flags, GDLM_LVB_SIZE, in gdlm_mount()
1233 if (error) { in gdlm_mount()
1234 fs_err(sdp, "dlm_new_lockspace error %d\n", error); in gdlm_mount()
1251 error = -EINVAL; in gdlm_mount()
1260 error = control_mount(sdp); in gdlm_mount()
1261 if (error) { in gdlm_mount()
1262 fs_err(sdp, "mount control error %d\n", error); in gdlm_mount()
1277 return error; in gdlm_mount()
1283 int error; in gdlm_first_done() local
1288 error = control_first_done(sdp); in gdlm_first_done()
1289 if (error) in gdlm_first_done()
1290 fs_err(sdp, "mount first_done error %d\n", error); in gdlm_first_done()