Lines Matching refs:plug
1680 static void run_plug(struct btrfs_plug_cb *plug) in run_plug() argument
1690 list_sort(NULL, &plug->rbio_list, plug_cmp); in run_plug()
1691 while (!list_empty(&plug->rbio_list)) { in run_plug()
1692 cur = list_entry(plug->rbio_list.next, in run_plug()
1715 kfree(plug); in run_plug()
1724 struct btrfs_plug_cb *plug; in unplug_work() local
1725 plug = container_of(work, struct btrfs_plug_cb, work); in unplug_work()
1726 run_plug(plug); in unplug_work()
1731 struct btrfs_plug_cb *plug; in btrfs_raid_unplug() local
1732 plug = container_of(cb, struct btrfs_plug_cb, cb); in btrfs_raid_unplug()
1735 btrfs_init_work(&plug->work, btrfs_rmw_helper, in btrfs_raid_unplug()
1737 btrfs_queue_work(plug->info->rmw_workers, in btrfs_raid_unplug()
1738 &plug->work); in btrfs_raid_unplug()
1741 run_plug(plug); in btrfs_raid_unplug()
1751 struct btrfs_plug_cb *plug = NULL; in raid56_parity_write() local
1779 sizeof(*plug)); in raid56_parity_write()
1781 plug = container_of(cb, struct btrfs_plug_cb, cb); in raid56_parity_write()
1782 if (!plug->info) { in raid56_parity_write()
1783 plug->info = root->fs_info; in raid56_parity_write()
1784 INIT_LIST_HEAD(&plug->rbio_list); in raid56_parity_write()
1786 list_add_tail(&rbio->plug_list, &plug->rbio_list); in raid56_parity_write()