/fs/ocfs2/dlm/ |
D | dlmthread.c | 63 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument 67 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags() 69 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 72 if (res->state & flags) { in __dlm_wait_on_lockres_flags() 73 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags() 75 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags() 78 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 82 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument 84 if (list_empty(&res->granted) && in __dlm_lockres_has_locks() 85 list_empty(&res->converting) && in __dlm_lockres_has_locks() [all …]
|
D | dlmmaster.c | 67 struct dlm_lock_resource *res, 76 struct dlm_lock_resource *res; in dlm_mle_equal() local 87 res = mle->u.res; in dlm_mle_equal() 88 if (namelen != res->lockname.len || in dlm_mle_equal() 89 memcmp(res->lockname.name, name, namelen) != 0) in dlm_mle_equal() 103 struct dlm_lock_resource *res, 112 static int dlm_do_master_request(struct dlm_lock_resource *res, 117 struct dlm_lock_resource *res, 121 struct dlm_lock_resource *res, 125 struct dlm_lock_resource *res, [all …]
|
D | dlmconvert.c | 61 struct dlm_lock_resource *res, 66 struct dlm_lock_resource *res, 79 struct dlm_lock_resource *res, in dlmconvert_master() argument 85 spin_lock(&res->spinlock); in dlmconvert_master() 87 __dlm_wait_on_lockres(res); in dlmconvert_master() 88 __dlm_lockres_reserve_ast(res); in dlmconvert_master() 89 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 91 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 94 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 95 spin_unlock(&res->spinlock); in dlmconvert_master() [all …]
|
D | dlmlock.c | 62 struct dlm_lock_resource *res, 92 static int dlm_can_grant_new_lock(struct dlm_lock_resource *res, in dlm_can_grant_new_lock() argument 98 list_for_each(iter, &res->granted) { in dlm_can_grant_new_lock() 105 list_for_each(iter, &res->converting) { in dlm_can_grant_new_lock() 123 struct dlm_lock_resource *res, in dlmlock_master() argument 131 spin_lock(&res->spinlock); in dlmlock_master() 134 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 138 spin_unlock(&res->spinlock); in dlmlock_master() 142 __dlm_wait_on_lockres(res); in dlmlock_master() 143 __dlm_lockres_reserve_ast(res); in dlmlock_master() [all …]
|
D | dlmunlock.c | 61 struct dlm_lock_resource *res, 66 struct dlm_lock_resource *res, 72 struct dlm_lock_resource *res, 101 struct dlm_lock_resource *res, in dlmunlock_common() argument 116 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common() 118 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common() 127 "while waiting for an ast!", res->lockname.len, in dlmunlock_common() 128 res->lockname.name); in dlmunlock_common() 132 spin_lock(&res->spinlock); in dlmunlock_common() 133 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common() [all …]
|
D | dlmrecovery.c | 71 static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res); 79 struct dlm_lock_resource *res, 82 struct dlm_lock_resource *res, 99 struct dlm_lock_resource *res, 259 struct dlm_lock_resource *res; in dlm_print_reco_node_status() local 297 list_for_each_entry(res, &dlm->reco.resources, recovering) { in dlm_print_reco_node_status() 299 dlm->name, res->lockname.len, res->lockname.name); in dlm_print_reco_node_status() 868 struct dlm_lock_resource *res; in dlm_request_all_locks_worker() local 914 list_for_each_entry(res, &resources, recovering) { in dlm_request_all_locks_worker() 915 ret = dlm_send_one_lockres(dlm, res, mres, reco_master, in dlm_request_all_locks_worker() [all …]
|
D | dlmast.c | 53 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, 116 struct dlm_lock_resource *res = lock->lockres; in __dlm_queue_ast() local 118 dlm->name, res->lockname.len, res->lockname.name); in __dlm_queue_ast() 131 dlm_lockres_release_ast(dlm, res); in __dlm_queue_ast() 183 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_update_lvb() argument 190 if (res->owner == dlm->node_num) { in dlm_update_lvb() 192 spin_lock(&res->spinlock); in dlm_update_lvb() 198 memcpy(lksb->lvb, res->lvb, DLM_LVB_LEN); in dlm_update_lvb() 207 spin_unlock(&res->spinlock); in dlm_update_lvb() 214 void dlm_do_local_ast(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, in dlm_do_local_ast() argument [all …]
|
D | dlmcommon.h | 82 struct dlm_lock_resource *res; member 401 dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) in dlm_list_idx_to_ptr() argument 405 ret = &res->granted; in dlm_list_idx_to_ptr() 407 ret = &res->converting; in dlm_list_idx_to_ptr() 409 ret = &res->blocked; in dlm_list_idx_to_ptr() 752 __dlm_lockres_state_to_status(struct dlm_lock_resource *res) in __dlm_lockres_state_to_status() argument 756 assert_spin_locked(&res->spinlock); in __dlm_lockres_state_to_status() 758 if (res->state & DLM_LOCK_RES_RECOVERING) in __dlm_lockres_state_to_status() 760 else if (res->state & DLM_LOCK_RES_MIGRATING) in __dlm_lockres_state_to_status() 762 else if (res->state & DLM_LOCK_RES_IN_PROGRESS) in __dlm_lockres_state_to_status() [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/nfs/ |
D | callback_proc.c | 19 __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res) in nfs4_callback_getattr() argument 26 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr() 27 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 43 res->size = i_size_read(inode); in nfs4_callback_getattr() 44 res->change_attr = delegation->change_attr; in nfs4_callback_getattr() 46 res->change_attr++; in nfs4_callback_getattr() 47 res->ctime = inode->i_ctime; in nfs4_callback_getattr() 48 res->mtime = inode->i_mtime; in nfs4_callback_getattr() 49 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr() 51 res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) & in nfs4_callback_getattr() [all …]
|
D | nfs3xdr.c | 506 nfs3_xdr_readdirres(struct rpc_rqst *req, __be32 *p, struct nfs3_readdirres *res) in nfs3_xdr_readdirres() argument 518 p = xdr_decode_post_op_attr(p, res->dir_attr); in nfs3_xdr_readdirres() 522 if (res->verf) { in nfs3_xdr_readdirres() 523 res->verf[0] = *p++; in nfs3_xdr_readdirres() 524 res->verf[1] = *p++; in nfs3_xdr_readdirres() 564 if (res->plus) { in nfs3_xdr_readdirres() 767 nfs3_xdr_removeres(struct rpc_rqst *req, __be32 *p, struct nfs_removeres *res) in nfs3_xdr_removeres() argument 769 return nfs3_xdr_wccstat(req, p, &res->dir_attr); in nfs3_xdr_removeres() 776 nfs3_xdr_lookupres(struct rpc_rqst *req, __be32 *p, struct nfs3_diropres *res) in nfs3_xdr_lookupres() argument 783 if (!(p = xdr_decode_fhandle(p, res->fh))) in nfs3_xdr_lookupres() [all …]
|
D | nfs4xdr.c | 2213 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument 2217 *res = 0; in decode_attr_link_support() 2222 READ32(*res); in decode_attr_link_support() 2225 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support() 2229 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument 2233 *res = 0; in decode_attr_symlink_support() 2238 READ32(*res); in decode_attr_symlink_support() 2241 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support() 2265 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument 2269 *res = 60; in decode_attr_lease_time() [all …]
|
D | nfs3proc.c | 30 int res; in nfs3_rpc_wrapper() local 32 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper() 33 if (res != -EJUKEBOX) in nfs3_rpc_wrapper() 36 res = -ERESTARTSYS; in nfs3_rpc_wrapper() 38 return res; in nfs3_rpc_wrapper() 152 struct nfs3_diropres res = { in nfs3_proc_lookup() local 160 .rpc_resp = &res, in nfs3_proc_lookup() 185 struct nfs3_accessres res = { in nfs3_proc_access() local 191 .rpc_resp = &res, in nfs3_proc_access() 217 if (res.access & NFS3_ACCESS_READ) in nfs3_proc_access() [all …]
|
D | dir.c | 134 int res; in nfs_opendir() local 143 res = nfs_open(inode, filp); in nfs_opendir() 144 return res; in nfs_opendir() 362 int res; in readdir_search_pagecache() local 377 res = find_dirent_page(desc); in readdir_search_pagecache() 378 if (res != -EAGAIN) in readdir_search_pagecache() 388 dfprintk(DIRCACHE, "NFS: %s: returns %d\n", __func__, res); in readdir_search_pagecache() 389 return res; in readdir_search_pagecache() 411 res; in nfs_do_filldir() local 433 res = filldir(dirent, entry->name, entry->len, in nfs_do_filldir() [all …]
|
/fs/hfs/ |
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 | 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() 123 if (res) in __hfs_ext_write_extent() 144 int res; in __hfs_ext_read_extent() local 148 res = hfs_brec_find(fd); in __hfs_ext_read_extent() 149 if (res && res != -ENOENT) in __hfs_ext_read_extent() 150 return res; in __hfs_ext_read_extent() 162 int res; in __hfs_ext_cache_extent() local 167 res = __hfs_ext_read_extent(fd, HFS_I(inode)->cached_extents, inode->i_ino, in __hfs_ext_cache_extent() [all …]
|
D | dir.c | 26 int res; in hfs_lookup() local 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() 184 int res; in hfs_create() local 190 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() 191 if (res) { in hfs_create() 195 return res; in hfs_create() 213 int res; in hfs_mkdir() local [all …]
|
D | bfind.c | 46 int res; in __hfs_brec_find() local 50 res = -ENOENT; in __hfs_brec_find() 56 res = -EINVAL; in __hfs_brec_find() 63 res = 0; in __hfs_brec_find() 75 res = -EINVAL; in __hfs_brec_find() 87 return res; in __hfs_brec_find() 98 int height, res; in hfs_brec_find() local 108 res = 0; in hfs_brec_find() 113 res = PTR_ERR(bnode); in hfs_brec_find() 123 res = __hfs_brec_find(bnode, fd); in hfs_brec_find() [all …]
|
/fs/hfsplus/ |
D | dir.c | 242 int res; in hfsplus_create() local 248 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_create() 249 if (res) { in hfsplus_create() 253 return res; in hfsplus_create() 269 int res; in hfsplus_link() local 280 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 283 if (!res) in hfsplus_link() 285 if (res != -EEXIST) in hfsplus_link() 286 return res; in hfsplus_link() 291 res = hfsplus_create_cat(cnid, src_dir, &src_dentry->d_name, inode); in hfsplus_link() [all …]
|
D | ioctl.c | 102 int res; in hfsplus_setxattr() local 107 res = hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); in hfsplus_setxattr() 108 if (res) in hfsplus_setxattr() 109 return res; in hfsplus_setxattr() 110 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_setxattr() 111 if (res) in hfsplus_setxattr() 121 res = -ERANGE; in hfsplus_setxattr() 126 res = -ERANGE; in hfsplus_setxattr() 128 res = -EOPNOTSUPP; in hfsplus_setxattr() 129 if (!res) in hfsplus_setxattr() [all …]
|
D | extents.c | 88 int res; in __hfsplus_ext_write_extent() local 92 res = hfs_brec_find(fd); in __hfsplus_ext_write_extent() 94 if (res != -ENOENT) in __hfsplus_ext_write_extent() 99 if (res) in __hfsplus_ext_write_extent() 121 int res; in __hfsplus_ext_read_extent() local 125 res = hfs_brec_find(fd); in __hfsplus_ext_read_extent() 126 if (res && res != -ENOENT) in __hfsplus_ext_read_extent() 127 return res; in __hfsplus_ext_read_extent() 139 int res; in __hfsplus_ext_cache_extent() local 144 res = __hfsplus_ext_read_extent(fd, HFSPLUS_I(inode).cached_extents, inode->i_ino, in __hfsplus_ext_cache_extent() [all …]
|
D | bfind.c | 46 int res; in __hfs_brec_find() local 50 res = -ENOENT; in __hfs_brec_find() 59 res = 0; in __hfs_brec_find() 78 return res; in __hfs_brec_find() 89 int height, res; in hfs_brec_find() local 99 res = 0; in hfs_brec_find() 104 res = PTR_ERR(bnode); in hfs_brec_find() 114 res = __hfs_brec_find(bnode, fd); in hfs_brec_find() 126 return res; in hfs_brec_find() 131 res = -EIO; in hfs_brec_find() [all …]
|
/fs/ |
D | eventfd.c | 89 ssize_t res; in eventfd_read() local 96 res = -EAGAIN; in eventfd_read() 99 res = sizeof(ucnt); in eventfd_read() 102 for (res = 0;;) { in eventfd_read() 106 res = sizeof(ucnt); in eventfd_read() 110 res = -ERESTARTSYS; in eventfd_read() 120 if (res > 0) { in eventfd_read() 126 if (res > 0 && put_user(ucnt, (__u64 __user *) buf)) in eventfd_read() 129 return res; in eventfd_read() 136 ssize_t res; in eventfd_write() local [all …]
|
/fs/dlm/ |
D | debug_fs.c | 51 struct dlm_rsb *res) in print_format1_lock() argument 60 if (lkb->lkb_nodeid != res->res_nodeid) in print_format1_lock() 73 static int print_format1(struct dlm_rsb *res, struct seq_file *s) in print_format1() argument 76 int i, lvblen = res->res_ls->ls_lvblen, recover_list, root_list; in print_format1() 79 lock_rsb(res); in print_format1() 82 res, res->res_length); in print_format1() 86 for (i = 0; i < res->res_length; i++) { in print_format1() 87 if (isprint(res->res_name[i])) in print_format1() 88 seq_printf(s, "%c", res->res_name[i]); in print_format1() 93 if (res->res_nodeid > 0) in print_format1() [all …]
|
/fs/jffs2/ |
D | writev.c | 45 int res; in jffs2_flash_direct_writev() local 46 res = jffs2_sum_add_kvec(c, vecs, count, (uint32_t) to); in jffs2_flash_direct_writev() 47 if (res) { in jffs2_flash_direct_writev() 48 return res; in jffs2_flash_direct_writev() 68 int res; in jffs2_flash_direct_write() local 73 res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs); in jffs2_flash_direct_write() 74 if (res) { in jffs2_flash_direct_write() 75 return res; in jffs2_flash_direct_write()
|