Home
last modified time | relevance | path

Searched refs:ulist (Results 1 – 11 of 11) sorted by relevance

/linux/fs/btrfs/
H A Dulist.c48 void ulist_init(struct ulist *ulist) in ulist_init() argument
50 INIT_LIST_HEAD(&ulist->nodes); in ulist_init()
51 ulist->root = RB_ROOT; in ulist_init()
52 ulist->nnodes = 0; in ulist_init()
53 ulist->prealloc = NULL; in ulist_init()
64 void ulist_release(struct ulist *ulist) in ulist_release() argument
69 list_for_each_entry_safe(node, next, &ulist->nodes, list) { in ulist_release()
72 kfree(ulist->prealloc); in ulist_release()
73 ulist->prealloc = NULL; in ulist_release()
74 ulist->root = RB_ROOT; in ulist_release()
[all …]
H A Dulist.h36 struct ulist { struct
47 void ulist_init(struct ulist *ulist); argument
48 void ulist_release(struct ulist *ulist);
49 void ulist_reinit(struct ulist *ulist);
50 struct ulist *ulist_alloc(gfp_t gfp_mask);
51 void ulist_prealloc(struct ulist *ulist, gfp_t mask);
52 void ulist_free(struct ulist *ulist);
53 int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask);
54 int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux,
56 int ulist_del(struct ulist *ulist, u64 val, u64 aux);
[all …]
H A Dbackref.h22 struct ulist;
102 struct ulist *refs;
108 struct ulist *roots;
117 void (*cache_store)(u64 leaf_bytenr, const struct ulist *root_ids,
166 struct ulist refs;
H A Dqgroup.h148 struct ulist *old_roots;
366 u64 num_bytes, struct ulist *old_roots,
367 struct ulist *new_roots);
H A DMakefile32 backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \
H A Dqgroup.c1001 struct ulist *ulist = NULL; in btrfs_quota_enable() local
1024 ulist = ulist_alloc(GFP_KERNEL); in btrfs_quota_enable()
1025 if (!ulist) { in btrfs_quota_enable()
1069 fs_info->qgroup_ulist = ulist; in btrfs_quota_enable()
1070 ulist = NULL; in btrfs_quota_enable()
1285 ulist_free(ulist); in btrfs_quota_enable()
2755 struct ulist *roots, struct list_head *qgroups, in qgroup_update_refcnt()
2916 static int maybe_fs_roots(struct ulist *roots) in maybe_fs_roots()
2939 u64 num_bytes, struct ulist *old_roots, in btrfs_qgroup_account_extent()
2940 struct ulist *new_roots) in btrfs_qgroup_account_extent()
[all …]
H A Dfs.h38 struct ulist;
728 struct ulist *qgroup_ulist;
H A Dbackref.c469 struct ulist *parents, in add_all_parents()
593 struct prelim_ref *ref, struct ulist *parents) in resolve_indirect_ref()
703 static void free_leaf_list(struct ulist *ulist) in free_leaf_list() argument
709 while ((node = ulist_next(ulist, &uiter))) in free_leaf_list()
712 ulist_free(ulist); in free_leaf_list()
738 struct ulist *parents; in resolve_indirect_refs()
2414 struct ulist *refs; in iterate_extent_inodes()
H A Dextent_io.h197 struct ulist range_changed;
H A Dsend.c1444 static void store_backref_cache(u64 leaf_bytenr, const struct ulist *root_ids, in store_backref_cache()
/linux/fs/btrfs/tests/
H A Dqgroup-tests.c211 struct ulist *old_roots = NULL; in test_no_shared_qgroup()
212 struct ulist *new_roots = NULL; in test_no_shared_qgroup()
323 struct ulist *old_roots = NULL; in test_multiple_refs()
324 struct ulist *new_roots = NULL; in test_multiple_refs()