Lines Matching refs:test_bit
674 BUG_ON(!test_bit(B_WRITING, &b->state)); in write_endio()
695 if (!test_bit(B_DIRTY, &b->state)) in __write_dirty_buffer()
747 BUG_ON(test_bit(B_WRITING, &b->state)); in __get_unclaimed_buffer()
748 BUG_ON(test_bit(B_DIRTY, &b->state)); in __get_unclaimed_buffer()
759 BUG_ON(test_bit(B_READING, &b->state)); in __get_unclaimed_buffer()
886 BUG_ON(test_bit(B_READING, &b->state)); in __write_dirty_buffers_async()
888 if (!test_bit(B_DIRTY, &b->state) && in __write_dirty_buffers_async()
889 !test_bit(B_WRITING, &b->state)) { in __write_dirty_buffers_async()
894 if (no_wait && test_bit(B_WRITING, &b->state)) in __write_dirty_buffers_async()
1016 if (nf == NF_GET && unlikely(test_bit(B_READING, &b->state))) in __bufio_new()
1020 __relink_lru(b, test_bit(B_DIRTY, &b->state) || in __bufio_new()
1021 test_bit(B_WRITING, &b->state)); in __bufio_new()
1035 BUG_ON(!test_bit(B_READING, &b->state)); in read_endio()
1174 !test_bit(B_READING, &b->state) && in dm_bufio_release()
1175 !test_bit(B_WRITING, &b->state) && in dm_bufio_release()
1176 !test_bit(B_DIRTY, &b->state)) { in dm_bufio_release()
1192 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_mark_buffer_dirty()
1242 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_write_dirty_buffers()
1244 if (test_bit(B_WRITING, &b->state)) { in dm_bufio_write_dirty_buffers()
1258 if (!test_bit(B_DIRTY, &b->state) && in dm_bufio_write_dirty_buffers()
1259 !test_bit(B_WRITING, &b->state)) in dm_bufio_write_dirty_buffers()
1355 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_release_move()
1494 if (test_bit(B_READING, &b->state) || in __try_evict_buffer()
1495 test_bit(B_WRITING, &b->state) || in __try_evict_buffer()
1496 test_bit(B_DIRTY, &b->state)) in __try_evict_buffer()