/kernel/linux/linux-5.10/drivers/mtd/ |
H A D | mtdblock.c | 31 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state; member 83 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data() 101 * written to the device. Clear cache_state to avoid writing to 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 ! in do_cached_read() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/ |
H A D | mtdblock.c | 31 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state; member 83 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data() 101 * written to the device. Clear cache_state to avoid writing to 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 ! in do_cached_read() [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | extent-io-tree.c | 799 static void cache_state(struct extent_state *state, in cache_state() function 1035 cache_state(prealloc, cached_state); in __set_extent_bit() 1052 cache_state(state, failed_state); in __set_extent_bit() 1058 cache_state(state, cached_state); in __set_extent_bit() 1088 cache_state(state, failed_state); in __set_extent_bit() 1099 cache_state(state, cached_state); in __set_extent_bit() 1115 cache_state(state, cached_state); in __set_extent_bit() 1155 cache_state(prealloc, cached_state); in __set_extent_bit() 1169 cache_state(state, failed_state); in __set_extent_bit() 1182 cache_state(preallo in __set_extent_bit() [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | raid5-cache.c | 430 set_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state() 432 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_update_log_state() 434 clear_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state() 437 set_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state() 439 clear_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state() 1063 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in r5l_write_stripe() 1237 test_bit(R5C_LOG_TIGHT, &conf->cache_state)) in __r5l_stripe_write_finished() 1467 if (test_bit(R5C_LOG_TIGHT, &conf->cache_state)) { in r5c_do_reclaim() 1491 if (!test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_do_reclaim() 2781 clear_bit(R5C_EXTRA_PAGE_IN_USE, &conf->cache_state); in r5c_release_extra_page() [all...] |
H A D | raid5.h | 667 unsigned long cache_state; member
|
H A D | raid5.c | 720 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) { in raid5_get_active_stripe() 723 &conf->cache_state)) in raid5_get_active_stripe() 725 &conf->cache_state); in raid5_get_active_stripe() 733 &conf->cache_state); in raid5_get_active_stripe() 741 &conf->cache_state)), in raid5_get_active_stripe() 744 &conf->cache_state); in raid5_get_active_stripe() 3281 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in delay_towrite() 4154 &conf->cache_state)) { in handle_stripe_dirtying() 5519 bool try_loprio = test_bit(R5C_LOG_TIGHT, &conf->cache_state) || in __get_priority_stripe() 6488 clear_bit(R5_DID_ALLOC, &conf->cache_state); in raid5d() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | raid5-cache.c | 430 set_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state() 432 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_update_log_state() 434 clear_bit(R5C_LOG_CRITICAL, &conf->cache_state); in r5c_update_log_state() 437 set_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state() 439 clear_bit(R5C_LOG_TIGHT, &conf->cache_state); in r5c_update_log_state() 1062 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in r5l_write_stripe() 1236 test_bit(R5C_LOG_TIGHT, &conf->cache_state)) in __r5l_stripe_write_finished() 1466 if (test_bit(R5C_LOG_TIGHT, &conf->cache_state)) { in r5c_do_reclaim() 1490 if (!test_bit(R5C_LOG_CRITICAL, &conf->cache_state)) in r5c_do_reclaim() 2778 clear_bit(R5C_EXTRA_PAGE_IN_USE, &conf->cache_state); in r5c_release_extra_page() [all...] |
H A D | raid5.h | 672 unsigned long cache_state; member
|
H A D | raid5.c | 796 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() 3369 if (test_bit(R5C_LOG_CRITICAL, &conf->cache_state) && in delay_towrite() 4266 &conf->cache_state)) { in handle_stripe_dirtying() 5624 bool try_loprio = test_bit(R5C_LOG_TIGHT, &conf->cache_state) || 6812 clear_bit(R5_DID_ALLOC, &conf->cache_state); in raid5d() [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | extent_io.c | 945 static void cache_state(struct extent_state *state, in cache_state() function 1015 cache_state(prealloc, cached_state); in __set_extent_bit() 1038 cache_state(state, cached_state); in __set_extent_bit() 1079 cache_state(state, cached_state); in __set_extent_bit() 1094 cache_state(state, cached_state); in __set_extent_bit() 1132 cache_state(prealloc, cached_state); in __set_extent_bit() 1157 cache_state(prealloc, cached_state); in __set_extent_bit() 1264 cache_state(prealloc, cached_state); in convert_extent_bit() 1281 cache_state(state, cached_state); in convert_extent_bit() 1322 cache_state(stat in convert_extent_bit() [all...] |