/fs/dlm/ |
D | plock.c | 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 [all …]
|
D | recoverd.c | 51 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() argument 56 log_rinfo(ls, "dlm_recover %llu", (unsigned long long)rv->seq); in ls_recover() 79 error = dlm_recover_members(ls, rv, &neg); in ls_recover() 221 error = enable_locking(ls, rv->seq); in ls_recover() 242 (unsigned long long)rv->seq, ls->ls_generation, in ls_recover() 261 struct dlm_recover *rv = NULL; in do_ls_recovery() local 265 rv = ls->ls_recover_args; in do_ls_recovery() 267 if (rv && ls->ls_recover_seq == rv->seq) in do_ls_recovery() 271 if (rv) { in do_ls_recovery() 272 error = ls_recover(ls, rv); in do_ls_recovery() [all …]
|
D | ast.c | 59 int i, rv; in dlm_add_lkb_callback() local 88 rv = 0; in dlm_add_lkb_callback() 98 rv = 0; in dlm_add_lkb_callback() 107 rv = -1; in dlm_add_lkb_callback() 111 return rv; in dlm_add_lkb_callback() 117 int i, rv; in dlm_rem_lkb_callback() local 122 rv = -ENOENT; in dlm_rem_lkb_callback() 156 rv = 0; in dlm_rem_lkb_callback() 170 rv = 0; in dlm_rem_lkb_callback() 172 return rv; in dlm_rem_lkb_callback() [all …]
|
D | member.c | 518 static struct dlm_config_node *find_config_node(struct dlm_recover *rv, in find_config_node() argument 523 for (i = 0; i < rv->nodes_count; i++) { in find_config_node() 524 if (rv->nodes[i].nodeid == nodeid) in find_config_node() 525 return &rv->nodes[i]; in find_config_node() 530 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out) in dlm_recover_members() argument 551 node = find_config_node(rv, memb->nodeid); in dlm_recover_members() 572 for (i = 0; i < rv->nodes_count; i++) { in dlm_recover_members() 573 node = &rv->nodes[i]; in dlm_recover_members() 684 struct dlm_recover *rv, *rv_old; in dlm_ls_start() local 688 rv = kzalloc(sizeof(*rv), GFP_NOFS); in dlm_ls_start() [all …]
|
D | recover.c | 45 int rv; in dlm_wait_function() local 48 rv = wait_event_timeout(ls->ls_wait_general, in dlm_wait_function() 51 if (rv) in dlm_wait_function() 174 int error, rv; in dlm_recover_members_wait() local 189 rv = dlm_slots_assign(ls, &num_slots, &slots_size, &slots, &gen); in dlm_recover_members_wait() 190 if (!rv) { in dlm_recover_members_wait() 310 int rv; in recover_idr_add() local 315 rv = -1; in recover_idr_add() 318 rv = idr_alloc(&ls->ls_recover_idr, r, 1, 0, GFP_NOWAIT); in recover_idr_add() 319 if (rv < 0) in recover_idr_add() [all …]
|
D | lock.c | 290 static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in queue_cast() argument 302 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_TIMEOUT_CANCEL)) { in queue_cast() 304 rv = -ETIMEDOUT; in queue_cast() 308 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_DEADLOCK_CANCEL)) { in queue_cast() 310 rv = -EDEADLK; in queue_cast() 313 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); in queue_cast() 355 int rv; in put_rsb() local 357 rv = kref_put_lock(&r->res_ref, toss_rsb, in put_rsb() 359 if (rv) in put_rsb() 1165 int rv; in unhold_rsb() local [all …]
|
D | lockspace.c | 783 int rv; in lockspace_busy() local 787 rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_any, ls); in lockspace_busy() 789 rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_local, ls); in lockspace_busy() 791 rv = 0; in lockspace_busy() 794 return rv; in lockspace_busy() 801 int i, busy, rv; in release_lockspace() local 808 rv = -EBUSY; in release_lockspace() 812 rv = 0; in release_lockspace() 815 rv = --ls->ls_create_count; in release_lockspace() 817 rv = -EINVAL; in release_lockspace() [all …]
|
D | dir.c | 203 int rv; in find_rsb_root() local 209 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r); in find_rsb_root() 210 if (rv) in find_rsb_root() 211 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].toss, in find_rsb_root() 215 if (!rv) in find_rsb_root()
|
D | netlink.c | 120 int rv; in dlm_timeout_warn() local 125 rv = prepare_data(DLM_CMD_TIMEOUT, &send_skb, size); in dlm_timeout_warn() 126 if (rv < 0) in dlm_timeout_warn()
|
D | user.c | 183 int rv; in dlm_user_add_ast() local 212 rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); in dlm_user_add_ast() 213 if (rv < 0) { in dlm_user_add_ast() 804 int rv, resid, copy_lvb = 0; in device_read() local 808 rv = copy_version_to_user(buf, count); in device_read() 809 return rv; in device_read() 865 rv = dlm_rem_lkb_callback(lkb->lkb_resource->res_ls, lkb, &cb, &resid); in device_read() 866 if (rv < 0) { in device_read() 901 rv = copy_result_to_user(lkb->lkb_ua, in device_read() 909 return rv; in device_read()
|
D | config.c | 668 int rv; in comm_addr_store() local 682 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_store() 683 if (rv) { in comm_addr_store() 685 return rv; in comm_addr_store() 885 int rv, count; in dlm_config_nodes() local 893 rv = -EINVAL; in dlm_config_nodes() 902 rv = -ENOMEM; in dlm_config_nodes() 919 rv = 0; in dlm_config_nodes() 923 return rv; in dlm_config_nodes()
|
/fs/gfs2/ |
D | sys.c | 300 int rv; in demote_rq_store() local 305 rv = sscanf(buf, "%u:%llu %15s", &gltype, &glnum, in demote_rq_store() 307 if (rv != 3) in demote_rq_store() 329 rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl); in demote_rq_store() 330 if (rv) in demote_rq_store() 331 return rv; in demote_rq_store() 458 int rv; in lkfirst_store() local 460 rv = sscanf(buf, "%u", &first); in lkfirst_store() 461 if (rv != 1 || first > 1) in lkfirst_store() 463 rv = wait_for_completion_killable(&sdp->sd_locking_init); in lkfirst_store() [all …]
|
/fs/nfsd/ |
D | nfsctl.c | 105 ssize_t rv; in nfsctl_transaction_write() local 114 rv = write_op[ino](file, data, size); in nfsctl_transaction_write() 115 if (rv >= 0) { in nfsctl_transaction_write() 116 simple_transaction_set(file, rv); in nfsctl_transaction_write() 117 rv = size; in nfsctl_transaction_write() 119 return rv; in nfsctl_transaction_write() 129 ssize_t rv = nfsctl_transaction_write(file, buf, 0, pos); in nfsctl_transaction_read() local 130 if (rv < 0) in nfsctl_transaction_read() 131 return rv; in nfsctl_transaction_read() 416 int rv; in write_threads() local [all …]
|
D | nfs4idmap.c | 466 int rv; in nfsd_idmap_init() local 472 rv = cache_register_net(nn->idtoname_cache, net); in nfsd_idmap_init() 473 if (rv) in nfsd_idmap_init() 477 rv = PTR_ERR(nn->nametoid_cache); in nfsd_idmap_init() 480 rv = cache_register_net(nn->nametoid_cache, net); in nfsd_idmap_init() 481 if (rv) in nfsd_idmap_init() 491 return rv; in nfsd_idmap_init()
|
D | export.c | 1176 __be32 rv; in exp_pseudoroot() local 1181 rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL); in exp_pseudoroot() 1183 return rv; in exp_pseudoroot() 1333 int rv; in nfsd_export_init() local 1341 rv = cache_register_net(nn->svc_export_cache, net); in nfsd_export_init() 1342 if (rv) in nfsd_export_init() 1347 rv = PTR_ERR(nn->svc_expkey_cache); in nfsd_export_init() 1350 rv = cache_register_net(nn->svc_expkey_cache, net); in nfsd_export_init() 1351 if (rv) in nfsd_export_init() 1361 return rv; in nfsd_export_init()
|
/fs/proc/ |
D | inode.c | 284 loff_t rv = -EINVAL; in proc_reg_llseek() local 289 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 292 return rv; in proc_reg_llseek() 323 ssize_t rv = -EIO; in proc_reg_read() local 328 rv = pde_read(pde, file, buf, count, ppos); in proc_reg_read() 331 return rv; in proc_reg_read() 347 ssize_t rv = -EIO; in proc_reg_write() local 352 rv = pde_write(pde, file, buf, count, ppos); in proc_reg_write() 355 return rv; in proc_reg_write() 371 __poll_t rv = DEFAULT_POLLMASK; in proc_reg_poll() local [all …]
|
D | fd.c | 307 int rv; in proc_fd_permission() local 309 rv = generic_permission(&init_user_ns, inode, mask); in proc_fd_permission() 310 if (rv == 0) in proc_fd_permission() 311 return rv; in proc_fd_permission() 316 rv = 0; in proc_fd_permission() 319 return rv; in proc_fd_permission()
|
D | base.c | 1286 int rv; in proc_loginuid_write() local 1304 rv = kstrtou32_from_user(buf, count, 10, &loginuid); in proc_loginuid_write() 1305 if (rv < 0) in proc_loginuid_write() 1306 return rv; in proc_loginuid_write() 1317 rv = audit_set_loginuid(kloginuid); in proc_loginuid_write() 1318 if (rv < 0) in proc_loginuid_write() 1319 return rv; in proc_loginuid_write() 1376 int rv; in proc_fault_inject_write() local 1385 rv = kstrtoint(strstrip(buffer), 0, &make_it_fail); in proc_fault_inject_write() 1386 if (rv < 0) in proc_fault_inject_write() [all …]
|
/fs/isofs/ |
D | export.c | 52 struct dentry *rv = NULL; in isofs_export_get_parent() local 58 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 68 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 80 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 95 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 102 rv = d_obtain_alias(isofs_iget(child_inode->i_sb, parent_block, in isofs_export_get_parent() 107 return rv; in isofs_export_get_parent()
|
/fs/autofs/ |
D | root.c | 763 int rv; in autofs_compat_get_set_timeout() local 765 rv = get_user(ntimeout, p); in autofs_compat_get_set_timeout() 766 if (rv) in autofs_compat_get_set_timeout() 769 rv = put_user(sbi->exp_timeout/HZ, p); in autofs_compat_get_set_timeout() 770 if (rv) in autofs_compat_get_set_timeout() 780 return rv; in autofs_compat_get_set_timeout() 788 int rv; in autofs_get_set_timeout() local 790 rv = get_user(ntimeout, p); in autofs_get_set_timeout() 791 if (rv) in autofs_get_set_timeout() 794 rv = put_user(sbi->exp_timeout/HZ, p); in autofs_get_set_timeout() [all …]
|
/fs/nfs/ |
D | callback_proc.c | 249 u32 rv = NFS4ERR_NOMATCHING_LAYOUT; in initiate_file_draining() local 255 rv = NFS4ERR_DELAY; in initiate_file_draining() 269 rv = pnfs_check_callback_stateid(lo, &args->cbl_stateid); in initiate_file_draining() 270 if (rv != NFS_OK) in initiate_file_draining() 277 rv = NFS4ERR_DELAY; in initiate_file_draining() 288 rv = NFS4_OK; in initiate_file_draining() 293 rv = NFS4ERR_NOMATCHING_LAYOUT; in initiate_file_draining() 310 &args->cbl_stateid, -rv); in initiate_file_draining() 311 return rv; in initiate_file_draining()
|
D | pnfs_nfs.c | 264 int rv = 0, cnt; in pnfs_bucket_scan_array() local 268 rv += cnt; in pnfs_bucket_scan_array() 271 return rv; in pnfs_bucket_scan_array() 281 int rv = 0, cnt; in pnfs_generic_scan_commit_lists() local 292 rv += cnt; in pnfs_generic_scan_commit_lists() 298 return rv; in pnfs_generic_scan_commit_lists()
|
/fs/freevxfs/ |
D | vxfs_super.c | 304 int rv; in vxfs_init() local 315 rv = register_filesystem(&vxfs_fs_type); in vxfs_init() 316 if (rv < 0) in vxfs_init() 318 return rv; in vxfs_init()
|
/fs/cramfs/ |
D | inode.c | 983 int rv; in init_cramfs_fs() local 985 rv = cramfs_uncompress_init(); in init_cramfs_fs() 986 if (rv < 0) in init_cramfs_fs() 987 return rv; in init_cramfs_fs() 988 rv = register_filesystem(&cramfs_fs_type); in init_cramfs_fs() 989 if (rv < 0) in init_cramfs_fs() 991 return rv; in init_cramfs_fs()
|
/fs/nfs/blocklayout/ |
D | blocklayout.c | 75 struct parallel_io *rv; in alloc_parallel() local 77 rv = kmalloc(sizeof(*rv), GFP_NOFS); in alloc_parallel() 78 if (rv) { in alloc_parallel() 79 rv->data = data; in alloc_parallel() 80 kref_init(&rv->refcnt); in alloc_parallel() 82 return rv; in alloc_parallel()
|