/fs/proc/ |
D | proc_sysctl.c | 17 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument 26 sysctl_head_get(head); in proc_sys_make_inode() 28 ei->sysctl = head; in proc_sys_make_inode() 80 struct ctl_table_header *head = grab_header(dir); in proc_sys_lookup() local 88 if (IS_ERR(head)) in proc_sys_lookup() 89 return ERR_CAST(head); in proc_sys_lookup() 96 table = table ? table->child : head->ctl_table; in proc_sys_lookup() 113 inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p); in proc_sys_lookup() 125 sysctl_head_finish(head); in proc_sys_lookup() 133 struct ctl_table_header *head = grab_header(inode); in proc_sys_call_handler() local [all …]
|
/fs/hfsplus/ |
D | btree.c | 23 struct hfs_btree_header_rec *head; in hfs_btree_open() local 48 head = (struct hfs_btree_header_rec *)(kmap(page) + sizeof(struct hfs_bnode_desc)); in hfs_btree_open() 49 tree->root = be32_to_cpu(head->root); in hfs_btree_open() 50 tree->leaf_count = be32_to_cpu(head->leaf_count); in hfs_btree_open() 51 tree->leaf_head = be32_to_cpu(head->leaf_head); in hfs_btree_open() 52 tree->leaf_tail = be32_to_cpu(head->leaf_tail); in hfs_btree_open() 53 tree->node_count = be32_to_cpu(head->node_count); in hfs_btree_open() 54 tree->free_nodes = be32_to_cpu(head->free_nodes); in hfs_btree_open() 55 tree->attributes = be32_to_cpu(head->attributes); in hfs_btree_open() 56 tree->node_size = be16_to_cpu(head->node_size); in hfs_btree_open() [all …]
|
/fs/gfs2/ |
D | recovery.c | 57 struct list_head *head = &sdp->sd_revoke_list; in gfs2_revoke_add() local 61 list_for_each_entry(rr, head, rr_list) { in gfs2_revoke_add() 79 list_add(&rr->rr_list, head); in gfs2_revoke_add() 110 struct list_head *head = &sdp->sd_revoke_list; in gfs2_revoke_clean() local 113 while (!list_empty(head)) { in gfs2_revoke_clean() 114 rr = list_entry(head->next, struct gfs2_revoke_replay, rr_list); in gfs2_revoke_clean() 151 struct gfs2_log_header_host *head) in get_log_header() argument 173 *head = lh; in get_log_header() 192 struct gfs2_log_header_host *head) in find_good_lh() argument 198 error = get_log_header(jd, *blk, head); in find_good_lh() [all …]
|
D | super.c | 44 struct list_head list, *head; in gfs2_jindex_free() local 56 head = &jd->extent_list; in gfs2_jindex_free() 57 while (!list_empty(head)) { in gfs2_jindex_free() 58 jext = list_entry(head->next, in gfs2_jindex_free() 70 static struct gfs2_jdesc *jdesc_find_i(struct list_head *head, unsigned int jid) in jdesc_find_i() argument 75 list_for_each_entry(jd, head, jd_list) { in jdesc_find_i() 134 struct gfs2_log_header_host head; in gfs2_make_fs_rw() local 143 error = gfs2_find_jhead(sdp->sd_jdesc, &head); in gfs2_make_fs_rw() 147 if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_make_fs_rw() 154 sdp->sd_log_sequence = head.lh_sequence + 1; in gfs2_make_fs_rw() [all …]
|
D | glops.c | 42 struct list_head *head = &gl->gl_ail_list; in gfs2_ail_empty_gl() local 56 while (!list_empty(head)) { in gfs2_ail_empty_gl() 57 bd = list_entry(head->next, struct gfs2_bufdata, in gfs2_ail_empty_gl() 360 struct gfs2_log_header_host head; in trans_go_xmote_bh() local 366 error = gfs2_find_jhead(sdp->sd_jdesc, &head); in trans_go_xmote_bh() 369 if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) in trans_go_xmote_bh() 374 sdp->sd_log_sequence = head.lh_sequence + 1; in trans_go_xmote_bh() 375 gfs2_log_pointers_init(sdp, head.lh_blkno); in trans_go_xmote_bh()
|
D | lops.c | 217 struct list_head *head = &sdp->sd_log_le_buf; in buf_lo_after_commit() local 220 while (!list_empty(head)) { in buf_lo_after_commit() 221 bd = list_entry(head->next, struct gfs2_bufdata, bd_le.le_list); in buf_lo_after_commit() 231 struct gfs2_log_header_host *head, int pass) in buf_lo_before_scan() argument 326 struct list_head *head = &sdp->sd_log_le_revoke; in revoke_lo_before_commit() local 339 while (!list_empty(head)) { in revoke_lo_before_commit() 340 bd = list_entry(head->next, struct gfs2_bufdata, bd_le.le_list); in revoke_lo_before_commit() 366 struct gfs2_log_header_host *head, int pass) in revoke_lo_before_scan() argument 374 sdp->sd_replay_tail = head->lh_tail; in revoke_lo_before_scan() 466 struct list_head *head = &sdp->sd_log_le_rg; in rg_lo_after_commit() local [all …]
|
D | meta_io.h | 22 static inline void gfs2_buffer_clear_tail(struct buffer_head *bh, int head) in gfs2_buffer_clear_tail() argument 24 BUG_ON(head > bh->b_size); in gfs2_buffer_clear_tail() 25 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail()
|
D | log.c | 173 struct list_head *head; in gfs2_ail1_start() local 180 head = &sdp->sd_ail1_list; in gfs2_ail1_start() 181 if (list_empty(head)) { in gfs2_ail1_start() 187 first = head->prev; in gfs2_ail1_start() 196 if (first && (head->prev != first || in gfs2_ail1_start() 201 list_for_each_entry_safe_reverse(ai, tmp, head, ai_list) { in gfs2_ail1_start() 245 struct list_head *head = &ai->ai_ail2_list; in gfs2_ail2_empty_one() local 248 while (!list_empty(head)) { in gfs2_ail2_empty_one() 249 bd = list_entry(head->prev, struct gfs2_bufdata, in gfs2_ail2_empty_one() 801 struct list_head *head = &tr->tr_list_buf; in buf_lo_incore_commit() local [all …]
|
D | ops_address.c | 44 struct buffer_head *head = page_buffers(page); in gfs2_page_add_databufs() local 45 unsigned int bsize = head->b_size; in gfs2_page_add_databufs() 49 for (bh = head, start = 0; bh != head || !start; in gfs2_page_add_databufs() 939 struct buffer_head *bh, *head; in gfs2_invalidatepage() local 948 bh = head = page_buffers(page); in gfs2_invalidatepage() 954 } while (bh != head); in gfs2_invalidatepage() 1036 struct buffer_head *bh, *head; in gfs2_releasepage() local 1043 head = bh = page_buffers(page); in gfs2_releasepage() 1053 } while(bh != head); in gfs2_releasepage() 1056 head = bh = page_buffers(page); in gfs2_releasepage() [all …]
|
/fs/hfs/ |
D | btree.c | 20 struct hfs_btree_header_rec *head; in hfs_btree_open() local 67 head = (struct hfs_btree_header_rec *)(kmap(page) + sizeof(struct hfs_bnode_desc)); in hfs_btree_open() 68 tree->root = be32_to_cpu(head->root); in hfs_btree_open() 69 tree->leaf_count = be32_to_cpu(head->leaf_count); in hfs_btree_open() 70 tree->leaf_head = be32_to_cpu(head->leaf_head); in hfs_btree_open() 71 tree->leaf_tail = be32_to_cpu(head->leaf_tail); in hfs_btree_open() 72 tree->node_count = be32_to_cpu(head->node_count); in hfs_btree_open() 73 tree->free_nodes = be32_to_cpu(head->free_nodes); in hfs_btree_open() 74 tree->attributes = be32_to_cpu(head->attributes); in hfs_btree_open() 75 tree->node_size = be16_to_cpu(head->node_size); in hfs_btree_open() [all …]
|
/fs/ |
D | inode.c | 306 static void dispose_list(struct list_head *head) in dispose_list() argument 310 while (!list_empty(head)) { in dispose_list() 313 inode = list_first_entry(head, struct inode, i_list); in dispose_list() 337 static int invalidate_list(struct list_head *head, struct list_head *dispose) in invalidate_list() argument 342 next = head->next; in invalidate_list() 356 if (tmp == head) in invalidate_list() 515 static struct inode * find_inode(struct super_block * sb, struct hlist_head *head, int (*test)(stru… in find_inode() argument 521 hlist_for_each_entry(inode, node, head, i_hash) { in find_inode() 539 static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head *head, unsigned lo… in find_inode_fast() argument 545 hlist_for_each_entry(inode, node, head, i_hash) { in find_inode_fast() [all …]
|
D | buffer.c | 332 struct buffer_head *head; in __find_get_block_slow() local 344 head = page_buffers(page); in __find_get_block_slow() 345 bh = head; in __find_get_block_slow() 355 } while (bh != head); in __find_get_block_slow() 819 struct buffer_head *head = page_buffers(page); in __set_page_dirty_buffers() local 820 struct buffer_head *bh = head; in __set_page_dirty_buffers() 825 } while (bh != head); in __set_page_dirty_buffers() 985 struct buffer_head *bh, *head; in alloc_page_buffers() local 989 head = NULL; in alloc_page_buffers() 997 bh->b_this_page = head; in alloc_page_buffers() [all …]
|
D | mpage.c | 130 struct buffer_head *page_bh, *head; in map_buffer_to_page() local 145 head = page_buffers(page); in map_buffer_to_page() 146 page_bh = head; in map_buffer_to_page() 156 } while (page_bh != head); in map_buffer_to_page() 467 struct buffer_head *head = page_buffers(page); in __mpage_writepage() local 468 struct buffer_head *bh = head; in __mpage_writepage() 502 } while ((bh = bh->b_this_page) != head); in __mpage_writepage() 599 struct buffer_head *head = page_buffers(page); in __mpage_writepage() local 600 struct buffer_head *bh = head; in __mpage_writepage() 608 } while (bh != head); in __mpage_writepage()
|
/fs/befs/ |
D | btree.c | 82 befs_host_btree_nodehead head; /* head of node converted to cpu byteorder */ member 216 node->head.left = fs64_to_cpu(sb, node->od_node->left); in befs_bt_read_node() 217 node->head.right = fs64_to_cpu(sb, node->od_node->right); in befs_bt_read_node() 218 node->head.overflow = fs64_to_cpu(sb, node->od_node->overflow); in befs_bt_read_node() 219 node->head.all_key_count = in befs_bt_read_node() 221 node->head.all_key_length = in befs_bt_read_node() 284 node_off = this_node->head.overflow; in befs_btree_find() 353 last = node->head.all_key_count - 1; in befs_find_key() 464 while (key_sum + this_node->head.all_key_count <= key_no) { in befs_btree_read() 467 if (this_node->head.right == befs_bt_inval) { in befs_btree_read() [all …]
|
/fs/smbfs/ |
D | smbiod.c | 152 struct list_head *head; in smbiod_retry() local 168 head = server->xmitq.next; in smbiod_retry() 169 while (head != &server->xmitq) { in smbiod_retry() 170 req = list_entry(head, struct smb_request, rq_queue); in smbiod_retry() 171 head = head->next; in smbiod_retry() 186 head = server->recvq.next; in smbiod_retry() 187 while (head != &server->recvq) { in smbiod_retry() 188 req = list_entry(head, struct smb_request, rq_queue); in smbiod_retry() 189 head = head->next; in smbiod_retry()
|
D | dir.c | 125 ctl.head = cache->head; in smb_readdir() 127 if (!PageUptodate(page) || !ctl.head.eof) { in smb_readdir() 129 DENTRY_PATH(dentry), PageUptodate(page),ctl.head.eof); in smb_readdir() 134 if (jiffies - ctl.head.time >= SMB_MAX_AGE(server)) in smb_readdir() 148 if (filp->f_pos > ctl.head.end) in smb_readdir() 181 if (filp->f_pos > ctl.head.end) in smb_readdir() 204 ctl.head.time = jiffies; in smb_readdir() 205 ctl.head.eof = 0; in smb_readdir() 217 ctl.head.end = ctl.fpos - 1; in smb_readdir() 218 ctl.head.eof = ctl.valid; in smb_readdir() [all …]
|
/fs/nfs/ |
D | write.c | 513 static void nfs_cancel_commit_list(struct list_head *head) in nfs_cancel_commit_list() argument 517 while(!list_empty(head)) { in nfs_cancel_commit_list() 518 req = nfs_list_entry(head->next); in nfs_cancel_commit_list() 865 static int nfs_flush_multi(struct inode *inode, struct list_head *head, unsigned int npages, size_t… in nfs_flush_multi() argument 867 struct nfs_page *req = nfs_list_entry(head->next); in nfs_flush_multi() 932 static int nfs_flush_one(struct inode *inode, struct list_head *head, unsigned int npages, size_t c… in nfs_flush_one() argument 943 while (!list_empty(head)) { in nfs_flush_one() 944 req = nfs_list_entry(head->next); in nfs_flush_one() 955 while (!list_empty(head)) { in nfs_flush_one() 956 req = nfs_list_entry(head->next); in nfs_flush_one() [all …]
|
D | read.c | 212 nfs_async_read_error(struct list_head *head) in nfs_async_read_error() argument 216 while (!list_empty(head)) { in nfs_async_read_error() 217 req = nfs_list_entry(head->next); in nfs_async_read_error() 237 static int nfs_pagein_multi(struct inode *inode, struct list_head *head, unsigned int npages, size_… in nfs_pagein_multi() argument 239 struct nfs_page *req = nfs_list_entry(head->next); in nfs_pagein_multi() 297 static int nfs_pagein_one(struct inode *inode, struct list_head *head, unsigned int npages, size_t … in nfs_pagein_one() argument 309 while (!list_empty(head)) { in nfs_pagein_one() 310 req = nfs_list_entry(head->next); in nfs_pagein_one() 320 nfs_async_read_error(head); in nfs_pagein_one()
|
/fs/xfs/linux-2.6/ |
D | xfs_aops.c | 86 struct buffer_head *bh, *head; in xfs_count_page_state() local 90 bh = head = page_buffers(page); in xfs_count_page_state() 98 } while ((bh = bh->b_this_page) != head); in xfs_count_page_state() 489 xfs_ioend_t *head = ioend; in xfs_submit_ioend() local 504 ioend = head; in xfs_submit_ioend() 648 struct buffer_head *bh, *head; in xfs_probe_page() local 650 bh = head = page_buffers(page); in xfs_probe_page() 659 } while ((bh = bh->b_this_page) != head); in xfs_probe_page() 672 struct buffer_head *head, in xfs_probe_cluster() argument 685 } while ((bh = bh->b_this_page) != head); in xfs_probe_cluster() [all …]
|
/fs/ntfs/ |
D | aops.c | 194 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; in ntfs_read_block() local 218 bh = head = page_buffers(page); in ntfs_read_block() 344 } while (i++, iblock++, (bh = bh->b_this_page) != head); in ntfs_read_block() 561 struct buffer_head *bh, *head; in ntfs_write_block() local 596 bh = head = page_buffers(page); in ntfs_write_block() 812 } while (block++, (bh = bh->b_this_page) != head); in ntfs_write_block() 819 bh = head; in ntfs_write_block() 827 bh = head; in ntfs_write_block() 830 } while ((bh = bh->b_this_page) != head); in ntfs_write_block() 852 } while ((bh = bh->b_this_page) != head); in ntfs_write_block() [all …]
|
/fs/nfsd/ |
D | nfs3acl.c | 140 struct kvec *head = rqstp->rq_arg.head; in nfs3svc_decode_setaclargs() local 151 base = (char *)p - (char *)head->iov_base; in nfs3svc_decode_setaclargs() 175 struct kvec *head = rqstp->rq_res.head; in nfs3svc_encode_getaclres() local 183 base = (char *)p - (char *)head->iov_base; in nfs3svc_encode_getaclres()
|
D | nfs2acl.c | 176 struct kvec *head = rqstp->rq_arg.head; in nfsaclsvc_decode_setaclargs() local 187 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_decode_setaclargs() 226 struct kvec *head = rqstp->rq_res.head; in nfsaclsvc_encode_getaclres() local 244 base = (char *)p - (char *)head->iov_base; in nfsaclsvc_encode_getaclres()
|
/fs/dlm/ |
D | member.c | 26 struct list_head *head = &ls->ls_nodes; in add_ordered_member() local 28 list_for_each(tmp, head) { in add_ordered_member() 35 list_add_tail(newlist, head); in add_ordered_member() 95 static void clear_memb_list(struct list_head *head) in clear_memb_list() argument 99 while (!list_empty(head)) { in clear_memb_list() 100 memb = list_entry(head->next, struct dlm_member, list); in clear_memb_list()
|
D | lockspace.c | 672 struct list_head *head; in release_lockspace() local 725 head = &ls->ls_lkbtbl[i].list; in release_lockspace() 726 while (!list_empty(head)) { in release_lockspace() 727 lkb = list_entry(head->next, struct dlm_lkb, in release_lockspace() 749 head = &ls->ls_rsbtbl[i].list; in release_lockspace() 750 while (!list_empty(head)) { in release_lockspace() 751 rsb = list_entry(head->next, struct dlm_rsb, in release_lockspace() 758 head = &ls->ls_rsbtbl[i].toss; in release_lockspace() 759 while (!list_empty(head)) { in release_lockspace() 760 rsb = list_entry(head->next, struct dlm_rsb, in release_lockspace()
|
/fs/ocfs2/dlm/ |
D | dlmthread.c | 282 struct list_head *head; in dlm_shuffle_lists() local 311 head = &res->granted; in dlm_shuffle_lists() 312 list_for_each(iter, head) { in dlm_shuffle_lists() 330 head = &res->converting; in dlm_shuffle_lists() 331 list_for_each(iter, head) { in dlm_shuffle_lists() 378 head = &res->granted; in dlm_shuffle_lists() 379 list_for_each(iter, head) { in dlm_shuffle_lists() 394 head = &res->converting; in dlm_shuffle_lists() 395 list_for_each(iter, head) { in dlm_shuffle_lists()
|