Searched refs:ZRAM_IDLE (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-6.6/drivers/block/zram/ |
H A D | zram_drv.c | 237 * Do not mark ZRAM_UNDER_WB slot as ZRAM_IDLE to close race. in mark_idle() 247 zram_set_flag(zram, index, ZRAM_IDLE); in mark_idle() 610 !zram_test_flag(zram, index, ZRAM_IDLE)) in writeback_store() 625 zram_set_flag(zram, index, ZRAM_IDLE); in writeback_store() 630 zram_clear_flag(zram, index, ZRAM_IDLE); in writeback_store() 648 zram_clear_flag(zram, index, ZRAM_IDLE); in writeback_store() 668 * ZRAM_IDLE again. To close the race, idle_store doesn't in writeback_store() 669 * mark ZRAM_IDLE once it found the slot was ZRAM_UNDER_WB. in writeback_store() 670 * Thus, we could close the race by checking ZRAM_IDLE bit. in writeback_store() 674 !zram_test_flag(zram, index, ZRAM_IDLE)) { in writeback_store() [all...] |
H A D | zram_drv.h | 66 ZRAM_IDLE, /* not accessed page since last idle marking */ enumerator
|
/kernel/linux/linux-5.10/drivers/block/zram/ |
H A D | zram_drv.c | 258 * Do not mark ZRAM_UNDER_WB slot as ZRAM_IDLE to close race. in idle_store() 264 zram_set_flag(zram, index, ZRAM_IDLE); in idle_store() 642 !zram_test_flag(zram, index, ZRAM_IDLE)) in writeback_store() 653 zram_set_flag(zram, index, ZRAM_IDLE); in writeback_store() 658 zram_clear_flag(zram, index, ZRAM_IDLE); in writeback_store() 678 zram_clear_flag(zram, index, ZRAM_IDLE); in writeback_store() 694 * ZRAM_IDLE again. To close the race, idle_store doesn't in writeback_store() 695 * mark ZRAM_IDLE once it found the slot was ZRAM_UNDER_WB. in writeback_store() 696 * Thus, we could close the race by checking ZRAM_IDLE bit. in writeback_store() 700 !zram_test_flag(zram, index, ZRAM_IDLE)) { in writeback_store() [all...] |
H A D | zram_drv.h | 64 ZRAM_IDLE, /* not accessed page since last idle marking */ enumerator
|
Completed in 6 milliseconds