Lines Matching refs:test_bit
680 BUG_ON(!test_bit(B_WRITING, &b->state)); in write_endio()
701 if (!test_bit(B_DIRTY, &b->state)) in __write_dirty_buffer()
753 BUG_ON(test_bit(B_WRITING, &b->state)); in __get_unclaimed_buffer()
754 BUG_ON(test_bit(B_DIRTY, &b->state)); in __get_unclaimed_buffer()
765 BUG_ON(test_bit(B_READING, &b->state)); in __get_unclaimed_buffer()
892 BUG_ON(test_bit(B_READING, &b->state)); in __write_dirty_buffers_async()
894 if (!test_bit(B_DIRTY, &b->state) && in __write_dirty_buffers_async()
895 !test_bit(B_WRITING, &b->state)) { in __write_dirty_buffers_async()
900 if (no_wait && test_bit(B_WRITING, &b->state)) in __write_dirty_buffers_async()
1022 if (nf == NF_GET && unlikely(test_bit(B_READING, &b->state))) in __bufio_new()
1026 __relink_lru(b, test_bit(B_DIRTY, &b->state) || in __bufio_new()
1027 test_bit(B_WRITING, &b->state)); in __bufio_new()
1041 BUG_ON(!test_bit(B_READING, &b->state)); in read_endio()
1180 !test_bit(B_READING, &b->state) && in dm_bufio_release()
1181 !test_bit(B_WRITING, &b->state) && in dm_bufio_release()
1182 !test_bit(B_DIRTY, &b->state)) { in dm_bufio_release()
1198 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_mark_buffer_dirty()
1248 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_write_dirty_buffers()
1250 if (test_bit(B_WRITING, &b->state)) { in dm_bufio_write_dirty_buffers()
1264 if (!test_bit(B_DIRTY, &b->state) && in dm_bufio_write_dirty_buffers()
1265 !test_bit(B_WRITING, &b->state)) in dm_bufio_write_dirty_buffers()
1361 BUG_ON(test_bit(B_READING, &b->state)); in dm_bufio_release_move()
1500 if (test_bit(B_READING, &b->state) || in __try_evict_buffer()
1501 test_bit(B_WRITING, &b->state) || in __try_evict_buffer()
1502 test_bit(B_DIRTY, &b->state)) in __try_evict_buffer()