Lines Matching defs:work
156 * this does all the hard work for inserting an inline extent into
375 struct btrfs_work work;
462 * This is done inside an ordered work queue, and the compression
464 * two, and the ordered work queue takes care of making sure that
469 * entry onto the work queue to write the uncompressed bytes. This
633 * we don't need to create any more async work items.
684 * The async work queues will take care of doing actual
725 * to our extent and set things up for the async work queue to run
762 * of the code, which only gets called in the order the work was
1175 * work queue call back to started compression on a file and pages
1177 static noinline void async_cow_start(struct btrfs_work *work)
1182 async_chunk = container_of(work, struct async_chunk, work);
1192 * work queue call back to submit previously compressed pages
1194 static noinline void async_cow_submit(struct btrfs_work *work)
1196 struct async_chunk *async_chunk = container_of(work, struct async_chunk,
1197 work);
1198 struct btrfs_fs_info *fs_info = btrfs_work_owner(work);
1219 static noinline void async_cow_free(struct btrfs_work *work)
1223 async_chunk = container_of(work, struct async_chunk, work);
1336 btrfs_init_work(&async_chunk[i].work, async_cow_start,
1342 btrfs_queue_work(fs_info->delalloc_workers, &async_chunk[i].work);
1986 * list of inodes that have pending delalloc work to be done.
2326 struct btrfs_work work;
2329 static void btrfs_writepage_fixup_worker(struct btrfs_work *work)
2342 fixup = container_of(work, struct btrfs_writepage_fixup, work);
2502 btrfs_init_work(&fixup->work, btrfs_writepage_fixup_worker, NULL, NULL);
2505 btrfs_queue_work(fs_info->fixup_workers, &fixup->work);
2824 static void finish_ordered_fn(struct btrfs_work *work)
2827 ordered_extent = container_of(work, struct btrfs_ordered_extent, work);
2851 btrfs_init_work(&ordered_extent->work, finish_ordered_fn, NULL, NULL);
2852 btrfs_queue_work(wq, &ordered_extent->work);
4512 * adding enough space to keep up with the work we are
5020 * submitting those bios, which are executed by a separate task (work
7725 btrfs_init_work(&ordered->work, finish_ordered_fn, NULL,
7727 btrfs_queue_work(wq, &ordered->work);
9230 * now so we don't add too much work to the end of the transaction
9406 struct btrfs_work work;
9409 static void btrfs_run_delalloc_work(struct btrfs_work *work)
9414 delalloc_work = container_of(work, struct btrfs_delalloc_work,
9415 work);
9428 struct btrfs_delalloc_work *work;
9430 work = kmalloc(sizeof(*work), GFP_NOFS);
9431 if (!work)
9434 init_completion(&work->completion);
9435 INIT_LIST_HEAD(&work->list);
9436 work->inode = inode;
9437 btrfs_init_work(&work->work, btrfs_run_delalloc_work, NULL, NULL);
9439 return work;
9452 struct btrfs_delalloc_work *work, *next;
9486 work = btrfs_alloc_delalloc_work(inode);
9487 if (!work) {
9492 list_add_tail(&work->list, &works);
9494 &work->work);
9511 list_for_each_entry_safe(work, next, &works, list) {
9512 list_del_init(&work->list);
9513 wait_for_completion(&work->completion);
9514 kfree(work);