/fs/yaffs2/ |
D | devextras.h | 63 struct ylist_head *list) in ylist_add() argument 65 struct ylist_head *listNext = list->next; in ylist_add() 67 list->next = newEntry; in ylist_add() 68 newEntry->prev = list; in ylist_add() 75 struct ylist_head *list) in ylist_add_tail() argument 77 struct ylist_head *listPrev = list->prev; in ylist_add_tail() 79 list->prev = newEntry; in ylist_add_tail() 80 newEntry->next = list; in ylist_add_tail() 126 #define ylist_for_each(itervar, list) \ argument 127 for (itervar = (list)->next; itervar != (list); itervar = itervar->next) [all …]
|
/fs/dlm/ |
D | dir.c | 30 list_add(&de->list, &ls->ls_recover_list); in put_free_de() 40 list_for_each_entry(de, &ls->ls_recover_list, list) { in get_free_de() 42 list_del(&de->list); in get_free_de() 63 list); in dlm_clear_free_entries() 64 list_del(&de->list); in dlm_clear_free_entries() 104 memb = list_entry(tmp, struct dlm_member, list); in dlm_hash2nodeid() 135 list_add_tail(&de->list, &ls->ls_dirtbl[bucket].list); in add_entry_to_hash() 143 list_for_each_entry(de, &ls->ls_dirtbl[bucket].list, list) { in search_bucket() 173 list_del(&de->list); in dlm_dir_remove_entry() 189 head = &ls->ls_dirtbl[i].list; in dlm_dir_clear() [all …]
|
D | member.c | 25 struct list_head *newlist = &new->list; in add_ordered_member() 29 memb = list_entry(tmp, struct dlm_member, list); in add_ordered_member() 69 list_move(&memb->list, &ls->ls_nodes_gone); in dlm_remove_member() 77 list_for_each_entry(memb, &ls->ls_nodes, list) { in dlm_is_member() 88 list_for_each_entry(memb, &ls->ls_nodes_gone, list) { in dlm_is_removed() 100 memb = list_entry(head->next, struct dlm_member, list); in clear_memb_list() 101 list_del(&memb->list); in clear_memb_list() 125 list_for_each_entry(memb, &ls->ls_nodes, list) { in make_member_array() 143 list_for_each_entry(memb, &ls->ls_nodes, list) { in make_member_array() 168 list_for_each_entry(memb, &ls->ls_nodes, list) { in ping_members() [all …]
|
D | plock.c | 25 struct list_head list; member 66 INIT_LIST_HEAD(&op->list); in send_op() 68 list_add_tail(&op->list, &send_list); in send_op() 124 if (!list_empty(&op->list)) { in dlm_posix_lock() 127 list_del(&op->list); in dlm_posix_lock() 157 if (!list_empty(&op->list)) { in dlm_plock_callback() 160 list_del(&op->list); in dlm_plock_callback() 239 if (!list_empty(&op->list)) { in dlm_posix_unlock() 242 list_del(&op->list); in dlm_posix_unlock() 291 if (!list_empty(&op->list)) { in dlm_posix_get() [all …]
|
D | requestqueue.c | 21 struct list_head list; member 48 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue() 76 e = list_entry(ls->ls_requestqueue.next, struct rq_entry, list); in dlm_process_requestqueue() 82 list_del(&e->list); in dlm_process_requestqueue() 178 list_for_each_entry_safe(e, safe, &ls->ls_requestqueue, list) { in dlm_purge_requestqueue() 182 list_del(&e->list); in dlm_purge_requestqueue()
|
/fs/ext3/ |
D | xattr_trusted.c | 17 ext3_xattr_trusted_list(struct inode *inode, char *list, size_t list_size, in ext3_xattr_trusted_list() argument 26 if (list && total_len <= list_size) { in ext3_xattr_trusted_list() 27 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext3_xattr_trusted_list() 28 memcpy(list+prefix_len, name, name_len); in ext3_xattr_trusted_list() 29 list[prefix_len + name_len] = '\0'; in ext3_xattr_trusted_list() 56 .list = ext3_xattr_trusted_list,
|
D | xattr_user.c | 16 ext3_xattr_user_list(struct inode *inode, char *list, size_t list_size, in ext3_xattr_user_list() argument 25 if (list && total_len <= list_size) { in ext3_xattr_user_list() 26 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext3_xattr_user_list() 27 memcpy(list+prefix_len, name, name_len); in ext3_xattr_user_list() 28 list[prefix_len + name_len] = '\0'; in ext3_xattr_user_list() 58 .list = ext3_xattr_user_list,
|
D | xattr_security.c | 15 ext3_xattr_security_list(struct inode *inode, char *list, size_t list_size, in ext3_xattr_security_list() argument 22 if (list && total_len <= list_size) { in ext3_xattr_security_list() 23 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext3_xattr_security_list() 24 memcpy(list+prefix_len, name, name_len); in ext3_xattr_security_list() 25 list[prefix_len + name_len] = '\0'; in ext3_xattr_security_list() 73 .list = ext3_xattr_security_list,
|
/fs/ext4/ |
D | xattr_trusted.c | 17 ext4_xattr_trusted_list(struct inode *inode, char *list, size_t list_size, in ext4_xattr_trusted_list() argument 26 if (list && total_len <= list_size) { in ext4_xattr_trusted_list() 27 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext4_xattr_trusted_list() 28 memcpy(list+prefix_len, name, name_len); in ext4_xattr_trusted_list() 29 list[prefix_len + name_len] = '\0'; in ext4_xattr_trusted_list() 56 .list = ext4_xattr_trusted_list,
|
D | xattr_user.c | 16 ext4_xattr_user_list(struct inode *inode, char *list, size_t list_size, in ext4_xattr_user_list() argument 25 if (list && total_len <= list_size) { in ext4_xattr_user_list() 26 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext4_xattr_user_list() 27 memcpy(list+prefix_len, name, name_len); in ext4_xattr_user_list() 28 list[prefix_len + name_len] = '\0'; in ext4_xattr_user_list() 58 .list = ext4_xattr_user_list,
|
D | xattr_security.c | 15 ext4_xattr_security_list(struct inode *inode, char *list, size_t list_size, in ext4_xattr_security_list() argument 22 if (list && total_len <= list_size) { in ext4_xattr_security_list() 23 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext4_xattr_security_list() 24 memcpy(list+prefix_len, name, name_len); in ext4_xattr_security_list() 25 list[prefix_len + name_len] = '\0'; in ext4_xattr_security_list() 73 .list = ext4_xattr_security_list,
|
/fs/ext2/ |
D | xattr_trusted.c | 16 ext2_xattr_trusted_list(struct inode *inode, char *list, size_t list_size, in ext2_xattr_trusted_list() argument 25 if (list && total_len <= list_size) { in ext2_xattr_trusted_list() 26 memcpy(list, XATTR_TRUSTED_PREFIX, prefix_len); in ext2_xattr_trusted_list() 27 memcpy(list+prefix_len, name, name_len); in ext2_xattr_trusted_list() 28 list[prefix_len + name_len] = '\0'; in ext2_xattr_trusted_list() 55 .list = ext2_xattr_trusted_list,
|
D | xattr_user.c | 15 ext2_xattr_user_list(struct inode *inode, char *list, size_t list_size, in ext2_xattr_user_list() argument 24 if (list && total_len <= list_size) { in ext2_xattr_user_list() 25 memcpy(list, XATTR_USER_PREFIX, prefix_len); in ext2_xattr_user_list() 26 memcpy(list+prefix_len, name, name_len); in ext2_xattr_user_list() 27 list[prefix_len + name_len] = '\0'; in ext2_xattr_user_list() 58 .list = ext2_xattr_user_list,
|
D | xattr_security.c | 14 ext2_xattr_security_list(struct inode *inode, char *list, size_t list_size, in ext2_xattr_security_list() argument 20 if (list && total_len <= list_size) { in ext2_xattr_security_list() 21 memcpy(list, XATTR_SECURITY_PREFIX, prefix_len); in ext2_xattr_security_list() 22 memcpy(list+prefix_len, name, name_len); in ext2_xattr_security_list() 23 list[prefix_len + name_len] = '\0'; in ext2_xattr_security_list() 71 .list = ext2_xattr_security_list,
|
/fs/jffs2/ |
D | xattr_trusted.c | 35 static size_t jffs2_trusted_listxattr(struct inode *inode, char *list, size_t list_size, in jffs2_trusted_listxattr() argument 40 if (list && retlen<=list_size) { in jffs2_trusted_listxattr() 41 strcpy(list, XATTR_TRUSTED_PREFIX); in jffs2_trusted_listxattr() 42 strcpy(list + XATTR_TRUSTED_PREFIX_LEN, name); in jffs2_trusted_listxattr() 50 .list = jffs2_trusted_listxattr,
|
D | xattr_user.c | 35 static size_t jffs2_user_listxattr(struct inode *inode, char *list, size_t list_size, in jffs2_user_listxattr() argument 40 if (list && retlen <= list_size) { in jffs2_user_listxattr() 41 strcpy(list, XATTR_USER_PREFIX); in jffs2_user_listxattr() 42 strcpy(list + XATTR_USER_PREFIX_LEN, name); in jffs2_user_listxattr() 50 .list = jffs2_user_listxattr,
|
D | security.c | 65 static size_t jffs2_security_listxattr(struct inode *inode, char *list, size_t list_size, in jffs2_security_listxattr() argument 70 if (list && retlen <= list_size) { in jffs2_security_listxattr() 71 strcpy(list, XATTR_SECURITY_PREFIX); in jffs2_security_listxattr() 72 strcpy(list + XATTR_SECURITY_PREFIX_LEN, name); in jffs2_security_listxattr() 80 .list = jffs2_security_listxattr,
|
D | compr.c | 96 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_compress() 125 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_compress() 218 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_decompress() 261 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_register_compressor() 263 list_add(&comp->list, this->list.prev); in jffs2_register_compressor() 267 list_add_tail(&comp->list, &jffs2_compressor_list); in jffs2_register_compressor() 269 D2(list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_register_compressor() 291 list_del(&comp->list); in jffs2_unregister_compressor() 293 D2(list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_unregister_compressor()
|
D | debug.c | 180 list_for_each_entry(jeb, &c->clean_list, list) { in __jffs2_dbg_superblock_counts() 188 list_for_each_entry(jeb, &c->very_dirty_list, list) { in __jffs2_dbg_superblock_counts() 196 list_for_each_entry(jeb, &c->dirty_list, list) { in __jffs2_dbg_superblock_counts() 204 list_for_each_entry(jeb, &c->erasable_list, list) { in __jffs2_dbg_superblock_counts() 212 list_for_each_entry(jeb, &c->erasable_pending_wbuf_list, list) { in __jffs2_dbg_superblock_counts() 220 list_for_each_entry(jeb, &c->erase_pending_list, list) { in __jffs2_dbg_superblock_counts() 228 list_for_each_entry(jeb, &c->free_list, list) { in __jffs2_dbg_superblock_counts() 236 list_for_each_entry(jeb, &c->bad_used_list, list) { in __jffs2_dbg_superblock_counts() 245 list_for_each_entry(jeb, &c->erasing_list, list) { in __jffs2_dbg_superblock_counts() 249 list_for_each_entry(jeb, &c->erase_checking_list, list) { in __jffs2_dbg_superblock_counts() [all …]
|
/fs/ubifs/ |
D | gc.c | 138 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in joinup() 147 list_del(&snod->list); in joinup() 149 list_add_tail(&snod->list, data); in joinup() 195 snod = list_entry(lst, struct ubifs_scan_node, list); in move_nodes() 265 list_for_each_entry_safe(snod, tmp, &large, list) { in move_nodes() 290 list_del(&snod->list); in move_nodes() 309 list_for_each_entry_safe(snod, tmp, &large, list) { in move_nodes() 310 list_del(&snod->list); in move_nodes() 373 snod = list_entry(sleb->nodes.next, struct ubifs_scan_node, list); in ubifs_garbage_collect_leb() 380 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_garbage_collect_leb() [all …]
|
D | commit.c | 453 struct list_head list; member 516 struct list_head list; in dbg_check_old_index() local 523 INIT_LIST_HEAD(&list); in dbg_check_old_index() 549 list_add_tail(&i->list, &list); in dbg_check_old_index() 613 list_del(&i->list); in dbg_check_old_index() 616 if (list_empty(&list)) in dbg_check_old_index() 619 i = list_entry(list.prev, struct idx_node, in dbg_check_old_index() 620 list); in dbg_check_old_index() 660 list_del(&i->list); in dbg_check_old_index() 662 if (!list_empty(&list)) { in dbg_check_old_index() [all …]
|
/fs/btrfs/ |
D | ref-cache.c | 49 INIT_LIST_HEAD(&ref->list); in btrfs_alloc_leaf_ref() 131 while (!list_empty(&tree->list)) { in btrfs_remove_leaf_refs() 132 ref = list_entry(tree->list.next, struct btrfs_leaf_ref, list); in btrfs_remove_leaf_refs() 142 list_del_init(&ref->list); in btrfs_remove_leaf_refs() 204 list_add_tail(&ref->list, &tree->list); in btrfs_add_leaf_ref() 225 list_del_init(&ref->list); in btrfs_remove_leaf_ref()
|
/fs/gfs2/ |
D | super.c | 44 struct list_head list, *head; in gfs2_jindex_free() local 49 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free() 54 while (!list_empty(&list)) { in gfs2_jindex_free() 55 jd = list_entry(list.next, struct gfs2_jdesc, jd_list); in gfs2_jindex_free() 324 struct list_head list; member 345 LIST_HEAD(list); in gfs2_lock_fs_check_clean() 361 list_add(&lfcc->list, &list); in gfs2_lock_fs_check_clean() 384 while (!list_empty(&list)) { in gfs2_lock_fs_check_clean() 385 lfcc = list_entry(list.next, struct lfcc, list); in gfs2_lock_fs_check_clean() 386 list_del(&lfcc->list); in gfs2_lock_fs_check_clean()
|
/fs/jbd/ |
D | transaction.c | 1533 __blist_add_buffer(struct journal_head **list, struct journal_head *jh) in __blist_add_buffer() argument 1535 if (!*list) { in __blist_add_buffer() 1537 *list = jh; in __blist_add_buffer() 1540 struct journal_head *first = *list, *last = first->b_tprev; in __blist_add_buffer() 1557 __blist_del_buffer(struct journal_head **list, struct journal_head *jh) in __blist_del_buffer() argument 1559 if (*list == jh) { in __blist_del_buffer() 1560 *list = jh->b_tnext; in __blist_del_buffer() 1561 if (*list == jh) in __blist_del_buffer() 1562 *list = NULL; in __blist_del_buffer() 1581 struct journal_head **list = NULL; in __journal_temp_unlink_buffer() local [all …]
|
/fs/ |
D | dcookies.c | 69 struct list_head * list; in find_dcookie() local 71 list = dcookie_hashtable + dcookie_hash(dcookie); in find_dcookie() 73 list_for_each(pos, list) { in find_dcookie() 87 struct list_head * list = dcookie_hashtable + dcookie_hash(dcookie_value(dcs)); in hash_dcookie() local 88 list_add(&dcs->hash_list, list); in hash_dcookie() 278 struct list_head * list; in dcookie_exit() local 285 list = dcookie_hashtable + i; in dcookie_exit() 286 list_for_each_safe(pos, pos2, list) { in dcookie_exit()
|