Lines Matching refs:elems
66 u64 elems; member
185 if (atomic_dec_and_test(&rc->elems)) { in __readahead_hook()
270 zone->elems = 0; in reada_find_zone()
366 if (!zone->elems) in reada_find_extent()
368 ++zone->elems; in reada_find_extent()
463 --zone->elems; in reada_find_extent()
464 if (zone->elems == 0) { in reada_find_extent()
508 --zone->elems; in reada_extent_put()
509 if (zone->elems == 0) { in reada_extent_put()
562 atomic_inc(&rc->elems); in reada_add_block()
616 if (zone->elems > top_locked_elems) { in reada_pick_zone()
617 top_locked_elems = zone->elems; in reada_pick_zone()
621 if (zone->elems > top_elems) { in reada_pick_zone()
622 top_elems = zone->elems; in reada_pick_zone()
823 zone->start, zone->end, zone->elems, in dump_devs()
920 atomic_set(&rc->elems, 0); in btrfs_reada_add()
947 while (atomic_read(&rc->elems)) { in btrfs_reada_wait()
950 wait_event_timeout(rc->wait, atomic_read(&rc->elems) == 0, in btrfs_reada_wait()
952 dump_devs(fs_info, atomic_read(&rc->elems) < 10 ? 1 : 0); in btrfs_reada_wait()
955 dump_devs(fs_info, atomic_read(&rc->elems) < 10 ? 1 : 0); in btrfs_reada_wait()
967 while (atomic_read(&rc->elems)) { in btrfs_reada_wait()
970 wait_event_timeout(rc->wait, atomic_read(&rc->elems) == 0, in btrfs_reada_wait()