Lines Matching refs:unlikely

455 #define writecache_has_error(wc)	(unlikely(READ_ONCE((wc)->error)))
482 if (unlikely(error != 0))
511 if (unlikely(i == bitmap_bits))
519 if (unlikely(region.sector >= wc->metadata_sectors))
521 if (unlikely(region.sector + region.count > wc->metadata_sectors))
559 if (unlikely(region.sector + region.count > wc->metadata_sectors))
572 if (unlikely(r))
600 if (unlikely(r))
613 if (unlikely(!node))
623 if (unlikely(!node)) {
630 if (unlikely(!node))
645 if (unlikely(!node))
684 if (unlikely(!*node))
703 if (unlikely(wc->freelist_size + wc->writeback_size <= wc->freelist_high_watermark))
724 if (unlikely(!wc->current_free))
727 if (expected_sector != (sector_t)-1 && unlikely(cache_sector(wc, e) != expected_sector))
731 if (unlikely(!next))
735 if (unlikely(list_empty(&wc->freelist)))
738 if (expected_sector != (sector_t)-1 && unlikely(cache_sector(wc, e) != expected_sector))
755 if (unlikely(waitqueue_active(&wc->freelist_wait)))
816 if (unlikely(e->lru.next == &wc->lru))
848 if (unlikely(e->lru.prev == &wc->lru))
887 if (unlikely(!e))
906 if (unlikely(!node))
1259 if (unlikely(size > remaining_size))
1267 if (unlikely(r)) {
1281 } while (unlikely(remaining_size));
1297 if (unlikely(kthread_should_stop())) {
1411 if (unlikely(f->write_in_progress))
1428 if (unlikely(wc->uncommitted_blocks >= wc->autocommit_blocks)) {
1463 if (unlikely(wc->cleaner) ||
1468 if (unlikely(!e)) {
1495 if (unlikely(bio->bi_opf & REQ_FUA || wc->uncommitted_blocks >= wc->autocommit_blocks))
1513 else if (unlikely(wc->cleaner) || unlikely(wc->metadata_only))
1550 if (unlikely(bio->bi_opf & REQ_PREFLUSH)) {
1557 if (unlikely((((unsigned int)bio->bi_iter.bi_sector | bio_sectors(bio)) &
1566 if (unlikely(bio_op(bio) == REQ_OP_DISCARD)) {
1624 if (unlikely(waitqueue_active(&wc->bio_in_progress_wait[dir])))
1662 if (unlikely(list_empty(&wc->endio_list)))
1676 if (unlikely(list_empty(&wc->endio_list)))
1693 if (unlikely(wb->bio.bi_status != BLK_STS_OK))
1707 if (unlikely(n_walked >= ENDIO_LATENCY)) {
1730 if (unlikely(c->error))
1762 if (unlikely(kthread_should_stop())) {
1805 if (unlikely(bio_end_sector(&wb->bio) >= wc->data_device_sectors))
1819 if (unlikely(wc->max_writeback_jobs)) {
1851 if (unlikely(max_pages > WB_LIST_INLINE))
1856 if (likely(max_pages <= WB_LIST_INLINE) || unlikely(!wb->wc_list)) {
1883 } else if (unlikely(!bio_sectors(bio))) {
1929 if (unlikely(to.sector + to.count > wc->data_device_sectors)) {
1962 if (unlikely(wc->cleaner) || unlikely(wc->writeback_all) ||
1963 unlikely(dm_suspended(wc->ti)))
1982 if (unlikely(wc->writeback_all)) {
2001 if (unlikely(n_walked > WRITEBACK_LATENCY) &&
2008 if (unlikely(wc->writeback_all)) {
2009 if (unlikely(!e)) {
2017 if (unlikely(!writecache_entry_is_committed(wc, e)))
2023 if (unlikely(read_original_sector(wc, f) ==
2041 if (unlikely(!next_node))
2044 if (unlikely(read_original_sector(wc, g) ==
2052 if (unlikely(g->write_in_progress))
2054 if (unlikely(!writecache_entry_is_committed(wc, g)))
2063 //if (unlikely(n_walked > WRITEBACK_LATENCY) && likely(!wc->writeback_all))
2073 if (unlikely(e->wc_list_contiguous == BIO_MAX_VECS)) {
2074 if (unlikely(wc->writeback_all)) {
2091 if (unlikely(!wbl.size))
2106 if (unlikely(wc->writeback_all)) {