Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 172) sorted by relevance

1234567

/fs/yaffs2/
Ddevextras.h63 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/
Ddir.c30 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 …]
Dmember.c25 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 …]
Dplock.c25 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 …]
Drequestqueue.c21 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/
Dxattr_trusted.c17 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,
Dxattr_user.c16 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,
Dxattr_security.c15 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/
Dxattr_trusted.c17 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,
Dxattr_user.c16 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,
Dxattr_security.c15 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/
Dxattr_trusted.c16 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,
Dxattr_user.c15 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,
Dxattr_security.c14 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/
Dxattr_trusted.c35 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,
Dxattr_user.c35 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,
Dsecurity.c65 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,
Dcompr.c96 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()
Ddebug.c180 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/
Dgc.c138 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 …]
Dcommit.c453 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/
Dref-cache.c49 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/
Dsuper.c44 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/
Dtransaction.c1533 __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/
Ddcookies.c69 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()

1234567