Lines Matching refs:now
195 u64 now) in find_next_block_group() argument
211 if (ret_block_group->discard_eligible_time < now) in find_next_block_group()
240 int *discard_index, u64 now) in peek_discard_list() argument
246 block_group = find_next_block_group(discard_ctl, now); in peek_discard_list()
248 if (block_group && now >= block_group->discard_eligible_time) { in peek_discard_list()
376 u64 now, bool override) in __btrfs_discard_schedule_work() argument
385 block_group = find_next_block_group(discard_ctl, now); in __btrfs_discard_schedule_work()
407 if (now < block_group->discard_eligible_time) { in __btrfs_discard_schedule_work()
408 u64 bg_timeout = block_group->discard_eligible_time - now; in __btrfs_discard_schedule_work()
414 u64 elapsed = now - discard_ctl->prev_discard_time; in __btrfs_discard_schedule_work()
440 const u64 now = ktime_get_ns(); in btrfs_discard_schedule_work() local
443 __btrfs_discard_schedule_work(discard_ctl, now, override); in btrfs_discard_schedule_work()
490 u64 now = ktime_get_ns(); in btrfs_discard_workfn() local
495 &discard_index, now); in btrfs_discard_workfn()
498 if (now < block_group->discard_eligible_time) { in btrfs_discard_workfn()
546 now = ktime_get_ns(); in btrfs_discard_workfn()
549 discard_ctl->prev_discard_time = now; in btrfs_discard_workfn()
560 __btrfs_discard_schedule_work(discard_ctl, now, false); in btrfs_discard_workfn()