Lines Matching refs:flush_point
97 rb->flush_point = EMPTY_ENTRY; in pblk_rb_init()
390 unsigned int sync, flush_point; in pblk_rb_flush_point_set() local
404 flush_point = (pos == 0) ? (rb->nr_entries - 1) : (pos - 1); in pblk_rb_flush_point_set()
405 entry = &rb->entries[flush_point]; in pblk_rb_flush_point_set()
408 smp_store_release(&rb->flush_point, flush_point); in pblk_rb_flush_point_set()
715 unsigned int sync, flush_point; in pblk_rb_sync_advance() local
719 flush_point = READ_ONCE(rb->flush_point); in pblk_rb_sync_advance()
721 if (flush_point != EMPTY_ENTRY) { in pblk_rb_sync_advance()
724 secs_to_flush = pblk_rb_ring_count(flush_point, sync, in pblk_rb_sync_advance()
728 smp_store_release(&rb->flush_point, EMPTY_ENTRY); in pblk_rb_sync_advance()
743 unsigned int subm, sync, flush_point; in pblk_rb_flush_point_count() local
747 flush_point = smp_load_acquire(&rb->flush_point); in pblk_rb_flush_point_count()
748 if (flush_point == EMPTY_ENTRY) in pblk_rb_flush_point_count()
758 to_flush = pblk_rb_ring_count(flush_point, sync, rb->nr_entries) + 1; in pblk_rb_flush_point_count()
774 (rb->flush_point == EMPTY_ENTRY)) { in pblk_rb_tear_down_check()
821 if (rb->flush_point != EMPTY_ENTRY) in pblk_rb_sysfs()
834 rb->flush_point, in pblk_rb_sysfs()