/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 96 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock() 101 list_for_each_entry(tmplock, &res->converting, list) { in dlm_can_grant_new_lock() 120 struct dlm_lock_resource *res, in dlmlock_master() argument 128 spin_lock(&res->spinlock); in dlmlock_master() 131 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 135 spin_unlock(&res->spinlock); in dlmlock_master() 139 __dlm_wait_on_lockres(res); in dlmlock_master() 140 __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 | 67 static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res); 75 struct dlm_lock_resource *res, 78 struct dlm_lock_resource *res, 95 struct dlm_lock_resource *res, 255 struct dlm_lock_resource *res; in dlm_print_reco_node_status() local 293 list_for_each_entry(res, &dlm->reco.resources, recovering) { in dlm_print_reco_node_status() 295 dlm->name, res->lockname.len, res->lockname.name); in dlm_print_reco_node_status() 883 struct dlm_lock_resource *res; in dlm_request_all_locks_worker() local 929 list_for_each_entry(res, &resources, recovering) { in dlm_request_all_locks_worker() 930 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 102 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 | dir.c | 299 int res; in hfsplus_link() local 313 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 316 if (!res) in hfsplus_link() 318 if (res != -EEXIST) in hfsplus_link() 324 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 326 if (res) in hfsplus_link() 332 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 333 if (res) in hfsplus_link() 345 return res; in hfsplus_link() 355 int res; in hfsplus_unlink() local [all …]
|
D | xattr.c | 430 ssize_t res = 0; in hfsplus_getxattr_finder_info() local 440 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd); in hfsplus_getxattr_finder_info() 441 if (res) { in hfsplus_getxattr_finder_info() 443 return res; in hfsplus_getxattr_finder_info() 445 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_getxattr_finder_info() 446 if (res) in hfsplus_getxattr_finder_info() 456 res = folder_rec_len; in hfsplus_getxattr_finder_info() 463 res = file_rec_len; in hfsplus_getxattr_finder_info() 465 res = -EOPNOTSUPP; in hfsplus_getxattr_finder_info() 469 res = size ? -ERANGE : record_len; in hfsplus_getxattr_finder_info() [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 | 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() 196 int res; in hfs_create() local 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() [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 …]
|
/fs/ext4/ |
D | crypto_policy.c | 21 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inode_has_encryption_context() local 23 return (res > 0); in ext4_inode_has_encryption_context() 34 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_is_encryption_context_consistent_with_policy() local 37 if (res != sizeof(ctx)) in ext4_is_encryption_context_consistent_with_policy() 54 int res, res2; in ext4_create_encryption_context_from_policy() local 56 res = ext4_convert_inline_data(inode); in ext4_create_encryption_context_from_policy() 57 if (res) in ext4_create_encryption_context_from_policy() 58 return res; in ext4_create_encryption_context_from_policy() 87 res = ext4_xattr_set(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_create_encryption_context_from_policy() 90 if (!res) { in ext4_create_encryption_context_from_policy() [all …]
|
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() 75 res = ecr.res; in ext4_derive_key_aes() 83 return res; in ext4_derive_key_aes() [all …]
|
/fs/crypto/ |
D | keyinfo.c | 32 int res = 0; in derive_key_aes() local 39 res = PTR_ERR(tfm); in derive_key_aes() 46 res = -ENOMEM; in derive_key_aes() 52 res = crypto_ablkcipher_setkey(tfm, deriving_key, in derive_key_aes() 54 if (res < 0) in derive_key_aes() 61 res = crypto_wait_req(crypto_ablkcipher_encrypt(req), &wait); in derive_key_aes() 67 return res; in derive_key_aes() 80 int res; in validate_user_key() local 106 res = -ENOKEY; in validate_user_key() 112 res = -EKEYREVOKED; in validate_user_key() [all …]
|
D | policy.c | 110 int res; in fscrypt_ioctl_get_policy() local 115 res = inode->i_sb->s_cop->get_context(inode, &ctx, sizeof(ctx)); in fscrypt_ioctl_get_policy() 116 if (res < 0 && res != -ERANGE) in fscrypt_ioctl_get_policy() 117 return res; in fscrypt_ioctl_get_policy() 118 if (res != sizeof(ctx)) in fscrypt_ioctl_get_policy() 161 int res; in fscrypt_has_permitted_context() local 191 res = fscrypt_get_encryption_info(parent); in fscrypt_has_permitted_context() 192 if (res) in fscrypt_has_permitted_context() 194 res = fscrypt_get_encryption_info(child); in fscrypt_has_permitted_context() 195 if (res) in fscrypt_has_permitted_context() [all …]
|
/fs/nfs/ |
D | callback_proc.c | 25 struct cb_getattrres *res, in nfs4_callback_getattr() argument 32 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr() 36 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr() 37 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 50 res->size = i_size_read(inode); in nfs4_callback_getattr() 51 res->change_attr = delegation->change_attr; in nfs4_callback_getattr() 53 res->change_attr++; in nfs4_callback_getattr() 54 res->ctime = inode->i_ctime; in nfs4_callback_getattr() 55 res->mtime = inode->i_mtime; in nfs4_callback_getattr() 56 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr() [all …]
|
D | nfs3proc.c | 33 int res; in nfs3_rpc_wrapper() local 35 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper() 36 if (res != -EJUKEBOX) in nfs3_rpc_wrapper() 39 res = -ERESTARTSYS; in nfs3_rpc_wrapper() 41 return res; in nfs3_rpc_wrapper() 156 struct nfs3_diropres res = { in nfs3_proc_lookup() local 163 .rpc_resp = &res, in nfs3_proc_lookup() 168 res.dir_attr = nfs_alloc_fattr(); in nfs3_proc_lookup() 169 if (res.dir_attr == NULL) in nfs3_proc_lookup() 174 nfs_refresh_inode(dir, res.dir_attr); in nfs3_proc_lookup() [all …]
|
D | nfs4xdr.c | 3269 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument 3273 *res = 0; in decode_attr_link_support() 3280 *res = be32_to_cpup(p); in decode_attr_link_support() 3283 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support() 3290 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument 3294 *res = 0; in decode_attr_symlink_support() 3301 *res = be32_to_cpup(p); in decode_attr_symlink_support() 3304 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support() 3338 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument 3342 *res = 60; in decode_attr_lease_time() [all …]
|
D | nfs3acl.c | 23 struct nfs3_getaclres res = { in nfs3_get_acl() local 28 .rpc_resp = &res, in nfs3_get_acl() 54 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl() 55 if (res.fattr == NULL) in nfs3_get_acl() 67 status = nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl() 78 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 83 if (res.acl_access != NULL) { in nfs3_get_acl() 84 if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) || in nfs3_get_acl() 85 res.acl_access->a_count == 0) { in nfs3_get_acl() 86 posix_acl_release(res.acl_access); in nfs3_get_acl() [all …]
|