Lines Matching refs:plug
1672 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1682 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1683 while (!list_empty(&plug->rbio_list)) { in run_plug()
1684 cur = list_entry(plug->rbio_list.next, in run_plug()
1707 kfree(plug); in run_plug()
1716 struct btrfs_plug_cb *plug; in unplug_work() local
1717 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1718 run_plug(plug); in unplug_work()
1723 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1724 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1727 btrfs_init_work(&plug->work, btrfs_rmw_helper, in btrfs_raid_unplug()
1729 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1730 &plug->work); in btrfs_raid_unplug()
1733 run_plug(plug); in btrfs_raid_unplug()
1743 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1771 sizeof(*plug)); in raid56_parity_write()
1773 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1774 if (!plug->info) { in raid56_parity_write()
1775 plug->info = root->fs_info; in raid56_parity_write()
1776 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1778 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()