Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 194) sorted by relevance

12345678

/fs/ocfs2/dlm/
Ddlmthread.c61 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 …]
Ddlmmaster.c66 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 …]
Ddlmconvert.c59 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 …]
Ddlmlock.c61 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 …]
Ddlmunlock.c59 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
115 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common()
117 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common()
126 "while waiting for an ast!", res->lockname.len, in dlmunlock_common()
127 res->lockname.name); in dlmunlock_common()
131 spin_lock(&res->spinlock); in dlmunlock_common()
132 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common()
[all …]
Ddlmrecovery.c67 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 …]
Ddlmast.c51 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 …]
Ddlmcommon.h418 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 …]
Ddlmdebug.c50 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/
Dextents.c90 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()
103 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1); in __hfsplus_ext_write_extent()
104 if (res) in __hfsplus_ext_write_extent()
105 return res; in __hfsplus_ext_write_extent()
110 if (res) in __hfsplus_ext_write_extent()
111 return res; in __hfsplus_ext_write_extent()
130 int res = 0; in hfsplus_ext_write_extent_locked() local
[all …]
Ddir.c304 int res; in hfsplus_link() local
318 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link()
321 if (!res) in hfsplus_link()
323 if (res != -EEXIST) in hfsplus_link()
329 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link()
331 if (res) in hfsplus_link()
337 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link()
338 if (res) in hfsplus_link()
350 return res; in hfsplus_link()
360 int res; in hfsplus_unlink() local
[all …]
Dxattr.c432 int res; in hfsplus_setxattr() local
443 res = __hfsplus_setxattr(d_inode(dentry), xattr_name, value, size, in hfsplus_setxattr()
446 return res; in hfsplus_setxattr()
452 ssize_t res = 0; in hfsplus_getxattr_finder_info() local
462 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd); in hfsplus_getxattr_finder_info()
463 if (res) { in hfsplus_getxattr_finder_info()
465 return res; in hfsplus_getxattr_finder_info()
467 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_getxattr_finder_info()
468 if (res) in hfsplus_getxattr_finder_info()
478 res = folder_rec_len; in hfsplus_getxattr_finder_info()
[all …]
Dbfind.c119 int res; in __hfs_brec_find() local
124 res = -ENOENT; in __hfs_brec_find()
130 res = -EINVAL; in __hfs_brec_find()
135 res = 0; in __hfs_brec_find()
144 res = -EINVAL; in __hfs_brec_find()
158 return res; in __hfs_brec_find()
169 int height, res; in hfs_brec_find() local
179 res = 0; in hfs_brec_find()
184 res = PTR_ERR(bnode); in hfs_brec_find()
194 res = __hfs_brec_find(bnode, fd, do_key_compare); in hfs_brec_find()
[all …]
/fs/hfs/
Dextent.c112 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()
121 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1); in __hfs_ext_write_extent()
122 if (res) in __hfs_ext_write_extent()
123 return res; in __hfs_ext_write_extent()
127 if (res) in __hfs_ext_write_extent()
128 return res; in __hfs_ext_write_extent()
138 int res = 0; in hfs_ext_write_extent() local
[all …]
Dattr.c23 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 …]
Ddir.c26 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 …]
Dbfind.c60 int res; in __hfs_brec_find() local
64 res = -ENOENT; in __hfs_brec_find()
70 res = -EINVAL; in __hfs_brec_find()
77 res = 0; in __hfs_brec_find()
89 res = -EINVAL; in __hfs_brec_find()
101 return res; in __hfs_brec_find()
112 int height, res; in hfs_brec_find() local
122 res = 0; in hfs_brec_find()
127 res = PTR_ERR(bnode); in hfs_brec_find()
137 res = __hfs_brec_find(bnode, fd); in hfs_brec_find()
[all …]
/fs/ext4/
Dcrypto_policy.c21 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()
83 res = ext4_xattr_set(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_create_encryption_context_from_policy()
86 if (!res) { in ext4_create_encryption_context_from_policy()
[all …]
Dcrypto_key.c27 ecr->res = rc; in derive_crypt_complete()
43 int res = 0; in ext4_derive_key_v1() local
51 res = PTR_ERR(tfm); in ext4_derive_key_v1()
58 res = -ENOMEM; in ext4_derive_key_v1()
64 res = crypto_ablkcipher_setkey(tfm, deriving_key, in ext4_derive_key_v1()
66 if (res < 0) in ext4_derive_key_v1()
72 res = crypto_ablkcipher_encrypt(req); in ext4_derive_key_v1()
73 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_derive_key_v1()
75 res = ecr.res; in ext4_derive_key_v1()
83 return res; in ext4_derive_key_v1()
[all …]
/fs/crypto/
Dkeyinfo.c33 int res = 0; in derive_key_aes() local
40 res = PTR_ERR(tfm); in derive_key_aes()
47 res = -ENOMEM; in derive_key_aes()
53 res = crypto_skcipher_setkey(tfm, deriving_key, in derive_key_aes()
55 if (res < 0) in derive_key_aes()
62 res = crypto_wait_req(crypto_skcipher_encrypt(req), &wait); in derive_key_aes()
66 return res; in derive_key_aes()
77 int res; in validate_user_key() local
94 res = -ENOKEY; in validate_user_key()
100 res = -EKEYREVOKED; in validate_user_key()
[all …]
Dpolicy.c110 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/
Dcallback_proc.c23 struct cb_getattrres *res, in nfs4_callback_getattr() argument
30 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr()
34 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr()
35 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr()
43 -ntohl(res->status)); in nfs4_callback_getattr()
51 res->size = i_size_read(inode); in nfs4_callback_getattr()
52 res->change_attr = delegation->change_attr; in nfs4_callback_getattr()
54 res->change_attr++; in nfs4_callback_getattr()
55 res->ctime = inode->i_ctime; in nfs4_callback_getattr()
56 res->mtime = inode->i_mtime; in nfs4_callback_getattr()
[all …]
Dnfs4xdr.c3272 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument
3276 *res = 0; in decode_attr_link_support()
3283 *res = be32_to_cpup(p); in decode_attr_link_support()
3286 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support()
3293 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument
3297 *res = 0; in decode_attr_symlink_support()
3304 *res = be32_to_cpup(p); in decode_attr_symlink_support()
3307 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support()
3341 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument
3345 *res = 60; in decode_attr_lease_time()
[all …]
Dnfs3proc.c33 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 …]
Dnfs3acl.c23 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 …]

12345678