/fs/ocfs2/ |
D | namei.c | 104 int status; in ocfs2_lookup() local 121 status = ocfs2_inode_lock(dir, NULL, 0); in ocfs2_lookup() 122 if (status < 0) { in ocfs2_lookup() 123 if (status != -ENOENT) in ocfs2_lookup() 124 mlog_errno(status); in ocfs2_lookup() 125 ret = ERR_PTR(status); in ocfs2_lookup() 129 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, in ocfs2_lookup() 131 if (status < 0) in ocfs2_lookup() 168 status = ocfs2_dentry_attach_lock(dentry, inode, in ocfs2_lookup() 170 if (status) { in ocfs2_lookup() [all …]
|
D | quota_local.c | 101 int status; in ocfs2_modify_bh() local 105 status = PTR_ERR(handle); in ocfs2_modify_bh() 106 mlog_errno(status); in ocfs2_modify_bh() 107 return status; in ocfs2_modify_bh() 109 status = ocfs2_journal_access_dq(handle, inode, bh, in ocfs2_modify_bh() 111 if (status < 0) { in ocfs2_modify_bh() 112 mlog_errno(status); in ocfs2_modify_bh() 114 return status; in ocfs2_modify_bh() 119 status = ocfs2_journal_dirty(handle, bh); in ocfs2_modify_bh() 120 if (status < 0) { in ocfs2_modify_bh() [all …]
|
D | suballoc.c | 335 int status = 0; in ocfs2_block_group_fill() local 346 status = -EIO; in ocfs2_block_group_fill() 350 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill() 354 if (status < 0) { in ocfs2_block_group_fill() 355 mlog_errno(status); in ocfs2_block_group_fill() 372 status = ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill() 373 if (status < 0) in ocfs2_block_group_fill() 374 mlog_errno(status); in ocfs2_block_group_fill() 382 mlog_exit(status); in ocfs2_block_group_fill() 383 return status; in ocfs2_block_group_fill() [all …]
|
D | localalloc.c | 220 int status = 0; in ocfs2_load_local_alloc() local 247 status = -EINVAL; in ocfs2_load_local_alloc() 248 mlog_errno(status); in ocfs2_load_local_alloc() 252 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc() 254 if (status < 0) { in ocfs2_load_local_alloc() 255 mlog_errno(status); in ocfs2_load_local_alloc() 266 status = -EINVAL; in ocfs2_load_local_alloc() 274 status = -EINVAL; in ocfs2_load_local_alloc() 297 if (status < 0) in ocfs2_load_local_alloc() 302 if (status < 0) in ocfs2_load_local_alloc() [all …]
|
D | journal.c | 213 int status = 0; in ocfs2_commit_cache() local 232 status = jbd2_journal_flush(journal->j_journal); in ocfs2_commit_cache() 234 if (status < 0) { in ocfs2_commit_cache() 236 mlog_errno(status); in ocfs2_commit_cache() 252 mlog_exit(status); in ocfs2_commit_cache() 253 return status; in ocfs2_commit_cache() 336 int status; in ocfs2_extend_trans() local 346 status = 1; in ocfs2_extend_trans() 348 status = jbd2_journal_extend(handle, nblocks); in ocfs2_extend_trans() 349 if (status < 0) { in ocfs2_extend_trans() [all …]
|
D | inode.c | 364 int status, can_lock; in ocfs2_read_locked_inode() local 369 status = -EINVAL; in ocfs2_read_locked_inode() 372 return status; in ocfs2_read_locked_inode() 380 return status; in ocfs2_read_locked_inode() 435 status = ocfs2_open_lock(inode); in ocfs2_read_locked_inode() 436 if (status) { in ocfs2_read_locked_inode() 438 mlog_errno(status); in ocfs2_read_locked_inode() 439 return status; in ocfs2_read_locked_inode() 441 status = ocfs2_inode_lock(inode, NULL, 0); in ocfs2_read_locked_inode() 442 if (status) { in ocfs2_read_locked_inode() [all …]
|
D | super.c | 216 int status; in ocfs2_sync_fs() local 226 status = ocfs2_flush_truncate_log(osb); in ocfs2_sync_fs() 227 if (status < 0) in ocfs2_sync_fs() 228 mlog_errno(status); in ocfs2_sync_fs() 258 int status = 0; in ocfs2_init_global_system_inodes() local 265 status = PTR_ERR(new); in ocfs2_init_global_system_inodes() 266 mlog_errno(status); in ocfs2_init_global_system_inodes() 273 status = PTR_ERR(new); in ocfs2_init_global_system_inodes() 274 mlog_errno(status); in ocfs2_init_global_system_inodes() 286 status = -EINVAL; in ocfs2_init_global_system_inodes() [all …]
|
D | ioctl.c | 30 int status; in ocfs2_get_inode_attr() local 32 status = ocfs2_inode_lock(inode, NULL, 0); in ocfs2_get_inode_attr() 33 if (status < 0) { in ocfs2_get_inode_attr() 34 mlog_errno(status); in ocfs2_get_inode_attr() 35 return status; in ocfs2_get_inode_attr() 41 mlog_exit(status); in ocfs2_get_inode_attr() 42 return status; in ocfs2_get_inode_attr() 53 int status; in ocfs2_set_inode_attr() local 57 status = ocfs2_inode_lock(inode, &bh, 1); in ocfs2_set_inode_attr() 58 if (status < 0) { in ocfs2_set_inode_attr() [all …]
|
D | slot_map.c | 206 int status; in ocfs2_update_disk_slot() local 216 status = ocfs2_write_block(osb, bh, si->si_inode); in ocfs2_update_disk_slot() 217 if (status < 0) in ocfs2_update_disk_slot() 218 mlog_errno(status); in ocfs2_update_disk_slot() 220 return status; in ocfs2_update_disk_slot() 358 int status = 0; in ocfs2_map_slot_buffers() local 364 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers() 365 if (status) in ocfs2_map_slot_buffers() 390 status = -ENOMEM; in ocfs2_map_slot_buffers() 391 mlog_errno(status); in ocfs2_map_slot_buffers() [all …]
|
D | quota_global.c | 270 int status; in ocfs2_lock_global_qf() local 273 status = ocfs2_inode_lock(oinfo->dqi_gqinode, &bh, ex); in ocfs2_lock_global_qf() 274 if (status < 0) in ocfs2_lock_global_qf() 275 return status; in ocfs2_lock_global_qf() 304 int status; in ocfs2_global_read_info() local 314 status = -EINVAL; in ocfs2_global_read_info() 325 status = ocfs2_lock_global_qf(oinfo, 0); in ocfs2_global_read_info() 326 if (status < 0) { in ocfs2_global_read_info() 327 mlog_errno(status); in ocfs2_global_read_info() 330 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, in ocfs2_global_read_info() [all …]
|
D | file.c | 102 int status; in ocfs2_file_open() local 117 status = -ENOENT; in ocfs2_file_open() 127 status = ocfs2_init_file_private(inode, file); in ocfs2_file_open() 128 if (status) { in ocfs2_file_open() 139 mlog_exit(status); in ocfs2_file_open() 140 return status; in ocfs2_file_open() 291 int status; in ocfs2_set_inode_size() local 298 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_set_inode_size() 299 if (status < 0) { in ocfs2_set_inode_size() 300 mlog_errno(status); in ocfs2_set_inode_size() [all …]
|
/fs/nfsd/ |
D | nfs4recover.c | 99 __be32 status = nfserr_resource; in nfs4_make_rec_clidname() local 119 status = nfs_ok; in nfs4_make_rec_clidname() 124 return status; in nfs4_make_rec_clidname() 141 int status; in nfsd4_create_clid_dir() local 148 status = nfs4_save_creds(&original_cred); in nfsd4_create_clid_dir() 149 if (status < 0) in nfsd4_create_clid_dir() 150 return status; in nfsd4_create_clid_dir() 157 status = PTR_ERR(dentry); in nfsd4_create_clid_dir() 160 status = -EEXIST; in nfsd4_create_clid_dir() 165 status = mnt_want_write(rec_dir.mnt); in nfsd4_create_clid_dir() [all …]
|
D | nfs4proc.c | 67 __be32 status; in do_open_permission() local 80 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission() 82 return status; in do_open_permission() 89 __be32 status; in do_open_lookup() local 100 status = nfsd_create_v3(rqstp, current_fh, open->op_fname.data, in do_open_lookup() 109 if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0) in do_open_lookup() 113 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup() 117 if (status) in do_open_lookup() 129 status = do_open_permission(rqstp, current_fh, open, in do_open_lookup() 134 return status; in do_open_lookup() [all …]
|
/fs/nfs/ |
D | proc.c | 64 int status; in nfs_proc_get_root() local 68 status = rpc_call_sync(server->client, &msg, 0); in nfs_proc_get_root() 70 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root() 71 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root() 72 dprintk("%s: reply getattr: %d\n", __func__, status); in nfs_proc_get_root() 73 if (status) in nfs_proc_get_root() 74 return status; in nfs_proc_get_root() 78 status = rpc_call_sync(server->client, &msg, 0); in nfs_proc_get_root() 80 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root() 81 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root() [all …]
|
D | nfs4xdr.c | 542 int32_t status; member 2078 READ32(hdr->status); in decode_compound_hdr() 2086 return nfs4_stat_to_errno(hdr->status); in decode_compound_hdr() 2332 int status = 0; in decode_attr_files_avail() local 2343 return status; in decode_attr_files_avail() 2349 int status = 0; in decode_attr_files_free() local 2360 return status; in decode_attr_files_free() 2366 int status = 0; in decode_attr_files_total() local 2377 return status; in decode_attr_files_total() 2384 int status = 0; in decode_pathname() local [all …]
|
D | nfs3proc.c | 64 int status; in do_proc_get_root() local 68 status = rpc_call_sync(client, &msg, 0); in do_proc_get_root() 69 dprintk("%s: reply fsinfo: %d\n", __func__, status); in do_proc_get_root() 73 status = rpc_call_sync(client, &msg, 0); in do_proc_get_root() 74 dprintk("%s: reply getattr: %d\n", __func__, status); in do_proc_get_root() 76 return status; in do_proc_get_root() 86 int status; in nfs3_proc_get_root() local 88 status = do_proc_get_root(server->client, fhandle, info); in nfs3_proc_get_root() 89 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs3_proc_get_root() 90 status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info); in nfs3_proc_get_root() [all …]
|
D | callback_xdr.c | 136 __be32 status; in decode_compound_hdr_arg() local 138 status = decode_string(xdr, &hdr->taglen, &hdr->tag); in decode_compound_hdr_arg() 139 if (unlikely(status != 0)) in decode_compound_hdr_arg() 140 return status; in decode_compound_hdr_arg() 174 __be32 status; in decode_getattr_args() local 176 status = decode_fh(xdr, &args->fh); in decode_getattr_args() 177 if (unlikely(status != 0)) in decode_getattr_args() 180 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args() 182 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_getattr_args() 183 return status; in decode_getattr_args() [all …]
|
/fs/lockd/ |
D | clntproc.c | 157 int status; in nlmclnt_proc() local 171 status = nlmclnt_lock(call, fl); in nlmclnt_proc() 173 status = nlmclnt_unlock(call, fl); in nlmclnt_proc() 175 status = nlmclnt_test(call, fl); in nlmclnt_proc() 177 status = -EINVAL; in nlmclnt_proc() 182 dprintk("lockd: clnt proc returns %d\n", status); in nlmclnt_proc() 183 return status; in nlmclnt_proc() 234 int status = -EINTR; in nlm_wait_on_grace() local 241 status = 0; in nlm_wait_on_grace() 244 return status; in nlm_wait_on_grace() [all …]
|
D | svcproc.c | 24 cast_to_nlm(__be32 status, u32 vers) in cast_to_nlm() argument 28 switch (status) { in cast_to_nlm() 37 status = nlm_lck_denied; in cast_to_nlm() 40 status = nlm_lck_denied_nolocks; in cast_to_nlm() 44 return (status); in cast_to_nlm() 46 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) argument 48 #define cast_status(status) (status) argument 119 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test() 120 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_test() 123 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test() [all …]
|
D | svc4proc.c | 90 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test() 91 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_test() 94 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test() 95 if (resp->status == nlm_drop_reply) in nlm4svc_proc_test() 98 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); in nlm4svc_proc_test() 118 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock() 119 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_lock() 129 resp->status = nlm_lck_denied_nolocks; in nlm4svc_proc_lock() 134 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock() 137 if (resp->status == nlm_drop_reply) in nlm4svc_proc_lock() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmlock.c | 127 enum dlm_status status = DLM_NORMAL; in dlmlock_master() local 134 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 135 if (status != DLM_NORMAL && in dlmlock_master() 139 dlm_error(status); in dlmlock_master() 140 return status; in dlmlock_master() 148 lock->lksb->status = DLM_NORMAL; in dlmlock_master() 149 status = DLM_NORMAL; in dlmlock_master() 171 status = DLM_NOTQUEUED; in dlmlock_master() 202 return status; in dlmlock_master() 225 enum dlm_status status = DLM_DENIED; in dlmlock_remote() local [all …]
|
D | dlmdomain.c | 554 int status; in dlm_send_one_domain_exit() local 563 status = o2net_send_message(DLM_EXIT_DOMAIN_MSG, dlm->key, in dlm_send_one_domain_exit() 567 mlog(0, "status return %d from o2net_send_message\n", status); in dlm_send_one_domain_exit() 569 return status; in dlm_send_one_domain_exit() 575 int node, clear_node, status; in dlm_leave_domain() local 597 status = dlm_send_one_domain_exit(dlm, node); in dlm_leave_domain() 598 if (status < 0 && in dlm_leave_domain() 599 status != -ENOPROTOOPT && in dlm_leave_domain() 600 status != -ENOTCONN) { in dlm_leave_domain() 602 "to node %d\n", status, node); in dlm_leave_domain() [all …]
|
D | dlmunlock.c | 107 enum dlm_status status; in dlmunlock_common() local 146 status = DLM_RECOVERING; in dlmunlock_common() 151 status = DLM_MIGRATING; in dlmunlock_common() 158 status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 160 status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 162 if (status != DLM_NORMAL && (status != DLM_CANCELGRANT || !master_node)) in dlmunlock_common() 184 status = dlm_send_remote_unlock_request(dlm, res, lock, lksb, in dlmunlock_common() 190 if (status == DLM_CANCELGRANT) { in dlmunlock_common() 194 } else if (status == DLM_RECOVERING || in dlmunlock_common() 195 status == DLM_MIGRATING || in dlmunlock_common() [all …]
|
D | dlmfs.c | 112 int status, level, flags; in dlmfs_file_open() local 122 status = dlmfs_decode_open_flags(file->f_flags, &level, &flags); in dlmfs_file_open() 123 if (status < 0) in dlmfs_file_open() 132 status = -ENOMEM; in dlmfs_file_open() 139 status = user_dlm_cluster_lock(&ip->ip_lockres, level, flags); in dlmfs_file_open() 140 if (status < 0) { in dlmfs_file_open() 145 if (flags & LKM_NOQUEUE && status == -EAGAIN) in dlmfs_file_open() 146 status = -ETXTBSY; in dlmfs_file_open() 153 return status; in dlmfs_file_open() 159 int level, status; in dlmfs_file_release() local [all …]
|
D | dlmconvert.c | 83 enum dlm_status status; in dlmconvert_master() local 91 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 97 if (status != DLM_NORMAL && status != DLM_NOTQUEUED) in dlmconvert_master() 98 dlm_error(status); in dlmconvert_master() 109 return status; in dlmconvert_master() 127 enum dlm_status status = DLM_NORMAL; in __dlmconvert_master() local 142 status = DLM_DENIED; in __dlmconvert_master() 150 status = DLM_DENIED; in __dlmconvert_master() 189 status = DLM_NORMAL; in __dlmconvert_master() 213 lock->lksb->status = DLM_NORMAL; in __dlmconvert_master() [all …]
|