Searched refs:cache_state (Results 1 – 2 of 2) sorted by relevance
44 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state; member119 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data()138 mtdblk->cache_state = STATE_EMPTY; in write_cached_data()176 if (mtdblk->cache_state == STATE_DIRTY && in do_cached_write()183 if (mtdblk->cache_state == STATE_EMPTY || in do_cached_write()186 mtdblk->cache_state = STATE_EMPTY; in do_cached_write()196 mtdblk->cache_state = STATE_CLEAN; in do_cached_write()201 mtdblk->cache_state = STATE_DIRTY; in do_cached_write()240 if (mtdblk->cache_state != STATE_EMPTY && in do_cached_read()298 mtdblk->cache_state = STATE_EMPTY; in mtdblock_open()
698 static void cache_state(struct extent_state *state, in cache_state() function793 cache_state(state, cached_state); in __set_extent_bit()843 cache_state(state, cached_state); in __set_extent_bit()877 cache_state(prealloc, cached_state); in __set_extent_bit()902 cache_state(prealloc, cached_state); in __set_extent_bit()2376 cache_state(state, &cached); in end_bio_extent_readpage()