/fs/ocfs2/dlm/ |
D | dlmthread.c | 61 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument 65 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags() 67 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 70 if (res->state & flags) { in __dlm_wait_on_lockres_flags() 71 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags() 73 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags() 76 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 80 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument 82 if (list_empty(&res->granted) && in __dlm_lockres_has_locks() 83 list_empty(&res->converting) && in __dlm_lockres_has_locks() [all …]
|
D | dlmmaster.c | 66 struct dlm_lock_resource *res, 93 struct dlm_lock_resource *res, 102 static int dlm_do_master_request(struct dlm_lock_resource *res, 107 struct dlm_lock_resource *res, 111 struct dlm_lock_resource *res, 115 struct dlm_lock_resource *res, 122 struct dlm_lock_resource *res); 124 struct dlm_lock_resource *res); 126 struct dlm_lock_resource *res, 129 struct dlm_lock_resource *res); [all …]
|
D | dlmconvert.c | 59 struct dlm_lock_resource *res, 64 struct dlm_lock_resource *res, 77 struct dlm_lock_resource *res, in dlmconvert_master() argument 83 spin_lock(&res->spinlock); in dlmconvert_master() 85 __dlm_wait_on_lockres(res); in dlmconvert_master() 86 __dlm_lockres_reserve_ast(res); in dlmconvert_master() 87 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 89 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 92 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 93 spin_unlock(&res->spinlock); in dlmconvert_master() [all …]
|
D | dlmlock.c | 61 struct dlm_lock_resource *res, 91 static int dlm_can_grant_new_lock(struct dlm_lock_resource *res, in dlm_can_grant_new_lock() argument 97 list_for_each(iter, &res->granted) { in dlm_can_grant_new_lock() 104 list_for_each(iter, &res->converting) { in dlm_can_grant_new_lock() 125 struct dlm_lock_resource *res, in dlmlock_master() argument 133 spin_lock(&res->spinlock); in dlmlock_master() 136 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 140 spin_unlock(&res->spinlock); in dlmlock_master() 144 __dlm_wait_on_lockres(res); in dlmlock_master() 145 __dlm_lockres_reserve_ast(res); in dlmlock_master() [all …]
|
D | dlmunlock.c | 59 struct dlm_lock_resource *res, 64 struct dlm_lock_resource *res, 70 struct dlm_lock_resource *res, 99 struct dlm_lock_resource *res, in dlmunlock_common() argument 114 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common() 116 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common() 125 "while waiting for an ast!", res->lockname.len, in dlmunlock_common() 126 res->lockname.name); in dlmunlock_common() 130 spin_lock(&res->spinlock); in dlmunlock_common() 131 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common() [all …]
|
D | dlmrecovery.c | 70 static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res); 78 struct dlm_lock_resource *res, 81 struct dlm_lock_resource *res, 98 struct dlm_lock_resource *res, 258 struct dlm_lock_resource *res; in dlm_print_reco_node_status() local 296 list_for_each_entry(res, &dlm->reco.resources, recovering) { in dlm_print_reco_node_status() 298 dlm->name, res->lockname.len, res->lockname.name); in dlm_print_reco_node_status() 873 struct dlm_lock_resource *res; in dlm_request_all_locks_worker() local 919 list_for_each_entry(res, &resources, recovering) { in dlm_request_all_locks_worker() 920 ret = dlm_send_one_lockres(dlm, res, mres, reco_master, in dlm_request_all_locks_worker() [all …]
|
D | dlmast.c | 51 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, 93 struct dlm_lock_resource *res; in __dlm_queue_ast() local 98 res = lock->lockres; in __dlm_queue_ast() 105 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 113 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 124 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 139 dlm_lockres_release_ast(dlm, res); in __dlm_queue_ast() 159 struct dlm_lock_resource *res; in __dlm_queue_bast() local 166 res = lock->lockres; in __dlm_queue_bast() 171 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_bast() [all …]
|
D | dlmcommon.h | 418 dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) in dlm_list_idx_to_ptr() argument 422 ret = &res->granted; in dlm_list_idx_to_ptr() 424 ret = &res->converting; in dlm_list_idx_to_ptr() 426 ret = &res->blocked; in dlm_list_idx_to_ptr() 797 __dlm_lockres_state_to_status(struct dlm_lock_resource *res) in __dlm_lockres_state_to_status() argument 801 assert_spin_locked(&res->spinlock); in __dlm_lockres_state_to_status() 803 if (res->state & DLM_LOCK_RES_RECOVERING) in __dlm_lockres_state_to_status() 805 else if (res->state & DLM_LOCK_RES_MIGRATING) in __dlm_lockres_state_to_status() 807 else if (res->state & DLM_LOCK_RES_IN_PROGRESS) in __dlm_lockres_state_to_status() 834 struct dlm_lock_resource *res); [all …]
|
D | dlmdebug.c | 50 void dlm_print_one_lock_resource(struct dlm_lock_resource *res) in dlm_print_one_lock_resource() argument 52 spin_lock(&res->spinlock); in dlm_print_one_lock_resource() 53 __dlm_print_one_lock_resource(res); in dlm_print_one_lock_resource() 54 spin_unlock(&res->spinlock); in dlm_print_one_lock_resource() 57 static void dlm_print_lockres_refmap(struct dlm_lock_resource *res) in dlm_print_lockres_refmap() argument 60 assert_spin_locked(&res->spinlock); in dlm_print_lockres_refmap() 65 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); in dlm_print_lockres_refmap() 71 printk("], inflight=%u\n", res->inflight_locks); in dlm_print_lockres_refmap() 97 void __dlm_print_one_lock_resource(struct dlm_lock_resource *res) in __dlm_print_one_lock_resource() argument 103 assert_spin_locked(&res->spinlock); in __dlm_print_one_lock_resource() [all …]
|
/fs/hfsplus/ |
D | extents.c | 90 int res; in __hfsplus_ext_write_extent() local 98 res = hfs_brec_find(fd, hfs_find_rec_by_key); in __hfsplus_ext_write_extent() 100 if (res != -ENOENT) in __hfsplus_ext_write_extent() 101 return res; in __hfsplus_ext_write_extent() 106 if (res) in __hfsplus_ext_write_extent() 107 return res; in __hfsplus_ext_write_extent() 126 int res = 0; in hfsplus_ext_write_extent_locked() local 131 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->ext_tree, &fd); in hfsplus_ext_write_extent_locked() 132 if (res) in hfsplus_ext_write_extent_locked() 133 return res; in hfsplus_ext_write_extent_locked() [all …]
|
D | xattr.c | 259 ssize_t res = 0; in hfsplus_getxattr_finder_info() local 270 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd); in hfsplus_getxattr_finder_info() 271 if (res) { in hfsplus_getxattr_finder_info() 273 return res; in hfsplus_getxattr_finder_info() 275 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_getxattr_finder_info() 276 if (res) in hfsplus_getxattr_finder_info() 286 res = folder_rec_len; in hfsplus_getxattr_finder_info() 293 res = file_rec_len; in hfsplus_getxattr_finder_info() 295 res = -EOPNOTSUPP; in hfsplus_getxattr_finder_info() 299 res = size ? -ERANGE : record_len; in hfsplus_getxattr_finder_info() [all …]
|
D | dir.c | 277 int res; in hfsplus_link() local 291 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 294 if (!res) in hfsplus_link() 296 if (res != -EEXIST) in hfsplus_link() 302 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 304 if (res) in hfsplus_link() 310 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 311 if (res) in hfsplus_link() 323 return res; in hfsplus_link() 333 int res; in hfsplus_unlink() local [all …]
|
D | bfind.c | 119 int res; in __hfs_brec_find() local 126 res = -ENOENT; in __hfs_brec_find() 132 res = -EINVAL; in __hfs_brec_find() 137 res = 0; in __hfs_brec_find() 146 res = -EINVAL; in __hfs_brec_find() 160 return res; in __hfs_brec_find() 171 int height, res; in hfs_brec_find() local 181 res = 0; in hfs_brec_find() 186 res = PTR_ERR(bnode); in hfs_brec_find() 196 res = __hfs_brec_find(bnode, fd, do_key_compare); in hfs_brec_find() [all …]
|
/fs/hfs/ |
D | extent.c | 112 int res; in __hfs_ext_write_extent() local 116 res = hfs_brec_find(fd); in __hfs_ext_write_extent() 118 if (res != -ENOENT) in __hfs_ext_write_extent() 119 return res; in __hfs_ext_write_extent() 123 if (res) in __hfs_ext_write_extent() 124 return res; in __hfs_ext_write_extent() 134 int res = 0; in hfs_ext_write_extent() local 137 res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_write_extent() 138 if (res) in hfs_ext_write_extent() 139 return res; in hfs_ext_write_extent() [all …]
|
D | attr.c | 23 int res; in hfs_setxattr() local 28 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in hfs_setxattr() 29 if (res) in hfs_setxattr() 30 return res; in hfs_setxattr() 32 res = hfs_brec_find(&fd); in hfs_setxattr() 33 if (res) in hfs_setxattr() 43 res = -ERANGE; in hfs_setxattr() 48 res = -ERANGE; in hfs_setxattr() 50 res = -EOPNOTSUPP; in hfs_setxattr() 51 if (!res) in hfs_setxattr() [all …]
|
D | bfind.c | 48 int res; in __hfs_brec_find() local 52 res = -ENOENT; in __hfs_brec_find() 58 res = -EINVAL; in __hfs_brec_find() 65 res = 0; in __hfs_brec_find() 77 res = -EINVAL; in __hfs_brec_find() 89 return res; in __hfs_brec_find() 100 int height, res; in hfs_brec_find() local 110 res = 0; in hfs_brec_find() 115 res = PTR_ERR(bnode); in hfs_brec_find() 125 res = __hfs_brec_find(bnode, fd); in hfs_brec_find() [all …]
|
D | dir.c | 26 int res; in hfs_lookup() local 28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup() 29 if (res) in hfs_lookup() 30 return ERR_PTR(res); in hfs_lookup() 32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup() 33 if (res) { in hfs_lookup() 35 if (res == -ENOENT) { in hfs_lookup() 40 return ERR_PTR(res); in hfs_lookup() 199 int res; in hfs_create() local 205 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() [all …]
|
/fs/ext4/ |
D | crypto_key.c | 27 ecr->res = rc; in derive_crypt_complete() 43 int res = 0; in ext4_derive_key_aes() local 51 res = PTR_ERR(tfm); in ext4_derive_key_aes() 58 res = -ENOMEM; in ext4_derive_key_aes() 64 res = crypto_ablkcipher_setkey(tfm, deriving_key, in ext4_derive_key_aes() 66 if (res < 0) in ext4_derive_key_aes() 72 res = crypto_ablkcipher_encrypt(req); in ext4_derive_key_aes() 73 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_derive_key_aes() 76 res = ecr.res; in ext4_derive_key_aes() 84 return res; in ext4_derive_key_aes() [all …]
|
D | crypto_policy.c | 20 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inode_has_encryption_context() local 22 return (res > 0); in ext4_inode_has_encryption_context() 33 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_is_encryption_context_consistent_with_policy() local 36 if (res != sizeof(ctx)) in ext4_is_encryption_context_consistent_with_policy() 52 int res = 0; in ext4_create_encryption_context_from_policy() local 54 res = ext4_convert_inline_data(inode); in ext4_create_encryption_context_from_policy() 55 if (res) in ext4_create_encryption_context_from_policy() 56 return res; in ext4_create_encryption_context_from_policy() 81 res = ext4_xattr_set(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_create_encryption_context_from_policy() 84 if (!res) in ext4_create_encryption_context_from_policy() [all …]
|
D | crypto.c | 99 int res = 0; in ext4_get_crypto_ctx() local 125 res = -ENOMEM; in ext4_get_crypto_ctx() 135 if (res) { in ext4_get_crypto_ctx() 138 ctx = ERR_PTR(res); in ext4_get_crypto_ctx() 180 int i, res = -ENOMEM; in ext4_init_crypto() local 204 res = -ENOMEM; in ext4_init_crypto() 213 res = -ENOMEM; in ext4_init_crypto() 222 return res; in ext4_init_crypto() 241 static void ext4_crypt_complete(struct crypto_async_request *req, int res) in ext4_crypt_complete() argument 245 if (res == -EINPROGRESS) in ext4_crypt_complete() [all …]
|
D | crypto_fname.c | 36 static void ext4_dir_crypt_complete(struct crypto_async_request *req, int res) in ext4_dir_crypt_complete() argument 40 if (res == -EINPROGRESS) in ext4_dir_crypt_complete() 42 ecr->res = res; in ext4_dir_crypt_complete() 73 int res = 0; in ext4_fname_encrypt() local 122 res = crypto_ablkcipher_encrypt(req); in ext4_fname_encrypt() 123 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_fname_encrypt() 126 res = ecr.res; in ext4_fname_encrypt() 130 if (res < 0) { in ext4_fname_encrypt() 132 KERN_ERR "%s: Error (error code %d)\n", __func__, res); in ext4_fname_encrypt() 135 return res; in ext4_fname_encrypt() [all …]
|
/fs/nfs/ |
D | callback_proc.c | 24 struct cb_getattrres *res, in nfs4_callback_getattr() argument 31 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr() 35 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr() 36 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 49 res->size = i_size_read(inode); in nfs4_callback_getattr() 50 res->change_attr = delegation->change_attr; in nfs4_callback_getattr() 52 res->change_attr++; in nfs4_callback_getattr() 53 res->ctime = inode->i_ctime; in nfs4_callback_getattr() 54 res->mtime = inode->i_mtime; in nfs4_callback_getattr() 55 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr() [all …]
|
D | nfs3proc.c | 31 int res; in nfs3_rpc_wrapper() local 33 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper() 34 if (res != -EJUKEBOX) in nfs3_rpc_wrapper() 37 res = -ERESTARTSYS; in nfs3_rpc_wrapper() 39 return res; in nfs3_rpc_wrapper() 153 struct nfs3_diropres res = { in nfs3_proc_lookup() local 160 .rpc_resp = &res, in nfs3_proc_lookup() 165 res.dir_attr = nfs_alloc_fattr(); in nfs3_proc_lookup() 166 if (res.dir_attr == NULL) in nfs3_proc_lookup() 171 nfs_refresh_inode(dir, res.dir_attr); in nfs3_proc_lookup() [all …]
|
D | nfs4xdr.c | 3198 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument 3202 *res = 0; in decode_attr_link_support() 3209 *res = be32_to_cpup(p); in decode_attr_link_support() 3212 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support() 3219 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument 3223 *res = 0; in decode_attr_symlink_support() 3230 *res = be32_to_cpup(p); in decode_attr_symlink_support() 3233 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support() 3267 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument 3271 *res = 60; in decode_attr_lease_time() [all …]
|
D | nfs4proc.c | 263 int res = 0; in nfs4_delay() local 273 res = -ERESTARTSYS; in nfs4_delay() 275 return res; in nfs4_delay() 396 static void nfs41_sequence_free_slot(struct nfs4_sequence_res *res) in nfs41_sequence_free_slot() argument 402 if (!res->sr_slot) { in nfs41_sequence_free_slot() 408 tbl = res->sr_slot->table; in nfs41_sequence_free_slot() 418 if (nfs41_wake_and_assign_slot(tbl, res->sr_slot)) { in nfs41_sequence_free_slot() 422 nfs4_free_slot(tbl, res->sr_slot); in nfs41_sequence_free_slot() 428 res->sr_slot = NULL; in nfs41_sequence_free_slot() 433 static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *res) in nfs41_sequence_done() argument [all …]
|