Home
last modified time | relevance | path

Searched refs:cache_state (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/mtd/
H A Dmtdblock.c31 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state; member
83 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data()
105 mtdblk->cache_state = STATE_EMPTY; in write_cached_data()
143 if (mtdblk->cache_state == STATE_DIRTY && in do_cached_write()
150 if (mtdblk->cache_state == STATE_EMPTY || in do_cached_write()
153 mtdblk->cache_state = STATE_EMPTY; in do_cached_write()
163 mtdblk->cache_state = STATE_CLEAN; in do_cached_write()
168 mtdblk->cache_state = STATE_DIRTY; in do_cached_write()
211 if (mtdblk->cache_state != STATE_EMPTY && in do_cached_read()
271 mtdblk->cache_state = STATE_EMPTY; in mtdblock_open()
/linux/drivers/md/
H A Draid5.c800 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) in is_inactive_blocked()
843 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) { in raid5_get_active_stripe()
852 if (!test_bit(R5_DID_ALLOC, &conf->cache_state)) in raid5_get_active_stripe()
853 set_bit(R5_ALLOC_MORE, &conf->cache_state); in raid5_get_active_stripe()
859 set_bit(R5_INACTIVE_BLOCKED, &conf->cache_state); in raid5_get_active_stripe()
871 clear_bit(R5_INACTIVE_BLOCKED, &conf->cache_state); in raid5_get_active_stripe()
3315 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in delay_towrite()
4186 &conf->cache_state)) { in handle_stripe_dirtying()
5531 bool try_loprio = test_bit(R5C_LOG_TIGHT, &conf->cache_state) || in __get_priority_stripe()
6800 clear_bit(R5_DID_ALLOC, &conf->cache_state); in raid5d()
[all …]