Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/fs/btrfs/
H A Dextent-io-tree.c1107 cache_state(prealloc, cached_state); in __set_extent_bit()
1124 cache_state(state, failed_state); in __set_extent_bit()
1130 cache_state(state, cached_state); in __set_extent_bit()
1160 cache_state(state, failed_state); in __set_extent_bit()
1171 cache_state(state, cached_state); in __set_extent_bit()
1187 cache_state(state, cached_state); in __set_extent_bit()
1246 cache_state(state, failed_state); in __set_extent_bit()
1259 cache_state(prealloc, cached_state); in __set_extent_bit()
1360 cache_state(prealloc, cached_state); in convert_extent_bit()
1376 cache_state(state, cached_state); in convert_extent_bit()
[all …]
/linux-6.15/drivers/md/
H A Draid5-cache.c429 set_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state()
431 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_update_log_state()
433 clear_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state()
436 set_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state()
438 clear_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state()
1060 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in r5l_write_stripe()
1234 test_bit(R5C_LOG_TIGHT, &conf->cache_state)) in __r5l_stripe_write_finished()
1464 if (test_bit(R5C_LOG_TIGHT, &conf->cache_state)) { in r5c_do_reclaim()
1488 if (!test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_do_reclaim()
2767 clear_bit(R5C_EXTRA_PAGE_IN_USE, &conf->cache_state); in r5c_release_extra_page()
[all …]
H A Draid5.h668 unsigned long cache_state; member
H A Draid5.c796 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) in is_inactive_blocked()
839 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) { in raid5_get_active_stripe()
848 if (!test_bit(R5_DID_ALLOC, &conf->cache_state)) in raid5_get_active_stripe()
849 set_bit(R5_ALLOC_MORE, &conf->cache_state); in raid5_get_active_stripe()
855 set_bit(R5_INACTIVE_BLOCKED, &conf->cache_state); in raid5_get_active_stripe()
867 clear_bit(R5_INACTIVE_BLOCKED, &conf->cache_state); in raid5_get_active_stripe()
3322 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in delay_towrite()
4180 &conf->cache_state)) { in handle_stripe_dirtying()
6767 clear_bit(R5_DID_ALLOC, &conf->cache_state); in raid5d()
6806 if (test_and_clear_bit(R5_ALLOC_MORE, &conf->cache_state) && in raid5d()
[all …]