• Home
  • Raw
  • Download

Lines Matching refs:flags

84 			unsigned int flags, int limit_active, int thresh)  in __btrfs_alloc_workqueue()  argument
110 if (flags & WQ_HIGHPRI) in __btrfs_alloc_workqueue()
111 ret->normal_wq = alloc_workqueue("btrfs-%s-high", flags, in __btrfs_alloc_workqueue()
114 ret->normal_wq = alloc_workqueue("btrfs-%s", flags, in __btrfs_alloc_workqueue()
124 trace_btrfs_workqueue_alloc(ret, name, flags & WQ_HIGHPRI); in __btrfs_alloc_workqueue()
133 unsigned int flags, in btrfs_alloc_workqueue() argument
143 flags & ~WQ_HIGHPRI, in btrfs_alloc_workqueue()
150 if (flags & WQ_HIGHPRI) { in btrfs_alloc_workqueue()
151 ret->high = __btrfs_alloc_workqueue(fs_info, name, flags, in btrfs_alloc_workqueue()
228 unsigned long flags; in run_ordered_work() local
233 spin_lock_irqsave(lock, flags); in run_ordered_work()
238 if (!test_bit(WORK_DONE_BIT, &work->flags)) in run_ordered_work()
247 if (test_and_set_bit(WORK_ORDER_DONE_BIT, &work->flags)) in run_ordered_work()
250 spin_unlock_irqrestore(lock, flags); in run_ordered_work()
254 spin_lock_irqsave(lock, flags); in run_ordered_work()
256 spin_unlock_irqrestore(lock, flags); in run_ordered_work()
293 spin_unlock_irqrestore(lock, flags); in run_ordered_work()
328 set_bit(WORK_DONE_BIT, &work->flags); in btrfs_work_helper()
343 work->flags = 0; in btrfs_init_work()
349 unsigned long flags; in __btrfs_queue_work() local
354 spin_lock_irqsave(&wq->list_lock, flags); in __btrfs_queue_work()
356 spin_unlock_irqrestore(&wq->list_lock, flags); in __btrfs_queue_work()
367 if (test_bit(WORK_HIGH_PRIO_BIT, &work->flags) && wq->high) in btrfs_queue_work()
403 set_bit(WORK_HIGH_PRIO_BIT, &work->flags); in btrfs_set_work_high_priority()