Searched refs:SWAP_USAGE_OFFLIST_BIT (Results 1 – 1 of 1) sorted by relevance
156 #define SWAP_USAGE_OFFLIST_BIT (1UL << (BITS_PER_TYPE(atomic_t) - 2)) macro 157 #define SWAP_USAGE_COUNTER_MASK (~SWAP_USAGE_OFFLIST_BIT)995 /* SWAP_USAGE_OFFLIST_BIT can only be set by this helper. */1012 atomic_long_or(SWAP_USAGE_OFFLIST_BIT, &si->inuse_pages); in del_from_avail_list() 1016 * full and SWAP_USAGE_OFFLIST_BIT is not set (strictly in del_from_avail_list() 1023 pages | SWAP_USAGE_OFFLIST_BIT)) in del_from_avail_list() 1034 /* SWAP_USAGE_OFFLIST_BIT can only be cleared by this helper. */1052 if (!(atomic_long_read(&si->inuse_pages) & SWAP_USAGE_OFFLIST_BIT)) in add_to_avail_list() 1055 val = atomic_long_fetch_and_relaxed(~SWAP_USAGE_OFFLIST_BIT, &si->inuse_pages); in add_to_avail_list() 1066 pages | SWAP_USAGE_OFFLIST_BIT)) in add_to_avail_list() [all...]