/fs/dlm/ |
D | debug_fs.c | 78 int rv; in print_format1() local 82 rv = seq_printf(s, "\nResource %p Name (len=%d) \"", in print_format1() 84 if (rv) in print_format1() 95 rv = seq_printf(s, "\"\nLocal Copy, Master is node %d\n", in print_format1() 98 rv = seq_puts(s, "\"\nMaster Copy\n"); in print_format1() 100 rv = seq_printf(s, "\"\nLooking up master (lkid %x)\n", in print_format1() 103 rv = seq_printf(s, "\"\nInvalid master %d\n", in print_format1() 105 if (rv) in print_format1() 119 rv = seq_puts(s, "\n"); in print_format1() 120 if (rv) in print_format1() [all …]
|
D | plock.c | 110 int rv; in dlm_posix_lock() local 118 rv = -ENOMEM; in dlm_posix_lock() 148 rv = wait_event_killable(recv_wq, (op->done != 0)); in dlm_posix_lock() 149 if (rv == -ERESTARTSYS) { in dlm_posix_lock() 160 rv = FILE_LOCK_DEFERRED; in dlm_posix_lock() 172 rv = op->info.rv; in dlm_posix_lock() 174 if (!rv) { in dlm_posix_lock() 183 return rv; in dlm_posix_lock() 195 int rv = 0; in dlm_plock_callback() local 211 if (op->info.rv) { in dlm_plock_callback() [all …]
|
D | recoverd.c | 53 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() argument 58 log_rinfo(ls, "dlm_recover %llu", (unsigned long long)rv->seq); in ls_recover() 77 error = dlm_recover_members(ls, rv, &neg); in ls_recover() 218 error = enable_locking(ls, rv->seq); in ls_recover() 239 (unsigned long long)rv->seq, ls->ls_generation, in ls_recover() 249 (unsigned long long)rv->seq, error); in ls_recover() 260 struct dlm_recover *rv = NULL; in do_ls_recovery() local 263 rv = ls->ls_recover_args; in do_ls_recovery() 265 if (rv && ls->ls_recover_seq == rv->seq) in do_ls_recovery() 269 if (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 | netlink.c | 59 int rv; in send_data() local 61 rv = genlmsg_end(skb, data); in send_data() 62 if (rv < 0) { in send_data() 64 return rv; in send_data() 122 int rv; in dlm_timeout_warn() local 127 rv = prepare_data(DLM_CMD_TIMEOUT, &send_skb, size); in dlm_timeout_warn() 128 if (rv < 0) in dlm_timeout_warn()
|
D | member.c | 517 static struct dlm_config_node *find_config_node(struct dlm_recover *rv, in find_config_node() argument 522 for (i = 0; i < rv->nodes_count; i++) { in find_config_node() 523 if (rv->nodes[i].nodeid == nodeid) in find_config_node() 524 return &rv->nodes[i]; in find_config_node() 529 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out) in dlm_recover_members() argument 546 node = find_config_node(rv, memb->nodeid); in dlm_recover_members() 566 for (i = 0; i < rv->nodes_count; i++) { in dlm_recover_members() 567 node = &rv->nodes[i]; in dlm_recover_members() 676 struct dlm_recover *rv = NULL, *rv_old; in dlm_ls_start() local 680 rv = kzalloc(sizeof(struct dlm_recover), GFP_NOFS); in dlm_ls_start() [all …]
|
D | recover.c | 47 int rv; in dlm_wait_function() local 50 rv = wait_event_timeout(ls->ls_wait_general, in dlm_wait_function() 53 if (rv) in dlm_wait_function() 172 int error, rv; in dlm_recover_members_wait() local 187 rv = dlm_slots_assign(ls, &num_slots, &slots_size, &slots, &gen); in dlm_recover_members_wait() 188 if (!rv) { in dlm_recover_members_wait() 308 int rv; in recover_idr_add() local 313 rv = -1; in recover_idr_add() 316 rv = idr_alloc(&ls->ls_recover_idr, r, 1, 0, GFP_NOWAIT); in recover_idr_add() 317 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 301 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_TIMEOUT_CANCEL)) { in queue_cast() 303 rv = -ETIMEDOUT; in queue_cast() 306 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_DEADLOCK_CANCEL)) { in queue_cast() 308 rv = -EDEADLK; in queue_cast() 311 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); in queue_cast() 1147 int rv; in unhold_rsb() local 1148 rv = kref_put(&r->res_ref, toss_rsb); in unhold_rsb() 1149 DLM_ASSERT(!rv, dlm_dump_rsb(r);); in unhold_rsb() 1187 int rv; in create_lkb() local [all …]
|
D | lockspace.c | 747 int rv; in lockspace_busy() local 751 rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_any, ls); in lockspace_busy() 753 rv = idr_for_each(&ls->ls_lkbidr, lkb_idr_is_local, ls); in lockspace_busy() 755 rv = 0; in lockspace_busy() 758 return rv; in lockspace_busy() 765 int i, busy, rv; in release_lockspace() local 772 rv = -EBUSY; in release_lockspace() 776 rv = 0; in release_lockspace() 779 rv = --ls->ls_create_count; in release_lockspace() 781 rv = -EINVAL; in release_lockspace() [all …]
|
D | dir.c | 204 int rv; in find_rsb_root() local 210 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r); in find_rsb_root() 211 if (rv) in find_rsb_root() 212 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].toss, in find_rsb_root() 216 if (!rv) in find_rsb_root()
|
D | user.c | 181 int rv; in dlm_user_add_ast() local 210 rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); in dlm_user_add_ast() 211 if (rv < 0) { in dlm_user_add_ast() 782 int rv, resid, copy_lvb = 0; in device_read() local 785 rv = copy_version_to_user(buf, count); in device_read() 786 return rv; in device_read() 839 rv = dlm_rem_lkb_callback(lkb->lkb_resource->res_ls, lkb, &cb, &resid); in device_read() 840 if (rv < 0) { in device_read() 875 rv = copy_result_to_user(lkb->lkb_ua, in device_read() 883 return rv; in device_read()
|
D | config.c | 762 int rv; in comm_addr_write() local 776 rv = dlm_lowcomms_addr(cm->nodeid, addr, len); in comm_addr_write() 777 if (rv) { in comm_addr_write() 779 return rv; in comm_addr_write() 943 int rv, count; in dlm_config_nodes() local 951 rv = -EINVAL; in dlm_config_nodes() 960 rv = -ENOMEM; in dlm_config_nodes() 977 rv = 0; in dlm_config_nodes() 981 return rv; in dlm_config_nodes()
|
/fs/nfsd/ |
D | nfsctl.c | 97 ssize_t rv; in nfsctl_transaction_write() local 106 rv = write_op[ino](file, data, size); in nfsctl_transaction_write() 107 if (rv >= 0) { in nfsctl_transaction_write() 108 simple_transaction_set(file, rv); in nfsctl_transaction_write() 109 rv = size; in nfsctl_transaction_write() 111 return rv; in nfsctl_transaction_write() 121 ssize_t rv = nfsctl_transaction_write(file, buf, 0, pos); in nfsctl_transaction_read() local 122 if (rv < 0) in nfsctl_transaction_read() 123 return rv; in nfsctl_transaction_read() 431 int rv; in write_threads() local [all …]
|
D | nfs4idmap.c | 454 int rv; in nfsd_idmap_init() local 460 rv = cache_register_net(nn->idtoname_cache, net); in nfsd_idmap_init() 461 if (rv) in nfsd_idmap_init() 465 rv = PTR_ERR(nn->nametoid_cache); in nfsd_idmap_init() 468 rv = cache_register_net(nn->nametoid_cache, net); in nfsd_idmap_init() 469 if (rv) in nfsd_idmap_init() 479 return rv; in nfsd_idmap_init()
|
/fs/gfs2/ |
D | sys.c | 222 int rv; in demote_rq_store() local 227 rv = sscanf(buf, "%u:%llu %15s", &gltype, &glnum, in demote_rq_store() 229 if (rv != 3) in demote_rq_store() 251 rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl); in demote_rq_store() 252 if (rv) in demote_rq_store() 253 return rv; in demote_rq_store() 375 int rv; in lkfirst_store() local 377 rv = sscanf(buf, "%u", &first); in lkfirst_store() 378 if (rv != 1 || first > 1) in lkfirst_store() 380 rv = wait_for_completion_killable(&sdp->sd_locking_init); in lkfirst_store() [all …]
|
D | util.c | 142 int rv; in gfs2_consist_i() local 143 rv = gfs2_lm_withdraw(sdp, in gfs2_consist_i() 146 return rv; in gfs2_consist_i() 159 int rv; in gfs2_consist_inode_i() local 160 rv = gfs2_lm_withdraw(sdp, in gfs2_consist_inode_i() 167 return rv; in gfs2_consist_inode_i() 180 int rv; in gfs2_consist_rgrpd_i() local 181 rv = gfs2_lm_withdraw(sdp, in gfs2_consist_rgrpd_i() 187 return rv; in gfs2_consist_rgrpd_i() 239 int rv; in gfs2_io_error_i() local [all …]
|
D | super.c | 140 int rv; in gfs2_mount_args() local 230 rv = match_int(&tmp[0], &args->ar_commit); in gfs2_mount_args() 231 if (rv || args->ar_commit <= 0) { in gfs2_mount_args() 233 return rv ? rv : -EINVAL; in gfs2_mount_args() 237 rv = match_int(&tmp[0], &args->ar_statfs_quantum); in gfs2_mount_args() 238 if (rv || args->ar_statfs_quantum < 0) { in gfs2_mount_args() 240 return rv ? rv : -EINVAL; in gfs2_mount_args() 244 rv = match_int(&tmp[0], &args->ar_quota_quantum); in gfs2_mount_args() 245 if (rv || args->ar_quota_quantum <= 0) { in gfs2_mount_args() 247 return rv ? rv : -EINVAL; in gfs2_mount_args() [all …]
|
D | aops.c | 1050 int rv; in gfs2_direct_IO() local 1061 rv = gfs2_glock_nq(&gh); in gfs2_direct_IO() 1062 if (rv) in gfs2_direct_IO() 1063 return rv; in gfs2_direct_IO() 1064 rv = gfs2_ok_for_dio(ip, rw, offset); in gfs2_direct_IO() 1065 if (rv != 1) in gfs2_direct_IO() 1086 rv = 0; in gfs2_direct_IO() 1091 rv = filemap_write_and_wait_range(mapping, lstart, end); in gfs2_direct_IO() 1092 if (rv) in gfs2_direct_IO() 1098 rv = __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, in gfs2_direct_IO() [all …]
|
/fs/proc/ |
D | inode.c | 191 loff_t rv = -EINVAL; in proc_reg_llseek() local 197 rv = llseek(file, offset, whence); in proc_reg_llseek() 200 return rv; in proc_reg_llseek() 207 ssize_t rv = -EIO; in proc_reg_read() local 211 rv = read(file, buf, count, ppos); in proc_reg_read() 214 return rv; in proc_reg_read() 221 ssize_t rv = -EIO; in proc_reg_write() local 225 rv = write(file, buf, count, ppos); in proc_reg_write() 228 return rv; in proc_reg_write() 234 unsigned int rv = DEFAULT_POLLMASK; in proc_reg_poll() local [all …]
|
D | fd.c | 287 int rv; in proc_fd_permission() local 289 rv = generic_permission(inode, mask); in proc_fd_permission() 290 if (rv == 0) in proc_fd_permission() 291 return rv; in proc_fd_permission() 296 rv = 0; in proc_fd_permission() 299 return rv; in proc_fd_permission()
|
/fs/isofs/ |
D | export.c | 51 struct dentry *rv = NULL; in isofs_export_get_parent() local 57 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 67 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 79 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 94 rv = ERR_PTR(-EACCES); in isofs_export_get_parent() 101 rv = d_obtain_alias(isofs_iget(child_inode->i_sb, parent_block, in isofs_export_get_parent() 106 return rv; in isofs_export_get_parent()
|
/fs/freevxfs/ |
D | vxfs_super.c | 267 int rv; in vxfs_init() local 274 rv = register_filesystem(&vxfs_fs_type); in vxfs_init() 275 if (rv < 0) in vxfs_init() 277 return rv; in vxfs_init()
|
/fs/cramfs/ |
D | inode.c | 592 int rv; in init_cramfs_fs() local 594 rv = cramfs_uncompress_init(); in init_cramfs_fs() 595 if (rv < 0) in init_cramfs_fs() 596 return rv; in init_cramfs_fs() 597 rv = register_filesystem(&cramfs_fs_type); in init_cramfs_fs() 598 if (rv < 0) in init_cramfs_fs() 600 return rv; in init_cramfs_fs()
|
/fs/autofs4/ |
D | root.c | 780 int rv; in autofs4_compat_get_set_timeout() local 783 if ((rv = get_user(ntimeout, p)) || in autofs4_compat_get_set_timeout() 784 (rv = put_user(sbi->exp_timeout/HZ, p))) in autofs4_compat_get_set_timeout() 785 return rv; in autofs4_compat_get_set_timeout() 799 int rv; in autofs4_get_set_timeout() local 802 if ((rv = get_user(ntimeout, p)) || in autofs4_get_set_timeout() 803 (rv = put_user(sbi->exp_timeout/HZ, p))) in autofs4_get_set_timeout() 804 return rv; in autofs4_get_set_timeout()
|
/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()
|