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)) macro157 #define SWAP_USAGE_COUNTER_MASK (~SWAP_USAGE_OFFLIST_BIT)1013 atomic_long_or(SWAP_USAGE_OFFLIST_BIT, &si->inuse_pages); in del_from_avail_list()1024 pages | SWAP_USAGE_OFFLIST_BIT)) in del_from_avail_list()1053 if (!(atomic_long_read(&si->inuse_pages) & SWAP_USAGE_OFFLIST_BIT)) in add_to_avail_list()1056 val = atomic_long_fetch_and_relaxed(~SWAP_USAGE_OFFLIST_BIT, &si->inuse_pages); in add_to_avail_list()1067 pages | SWAP_USAGE_OFFLIST_BIT)) in add_to_avail_list()1107 if (unlikely(val & SWAP_USAGE_OFFLIST_BIT)) in swap_usage_sub()3024 atomic_long_set(&p->inuse_pages, SWAP_USAGE_OFFLIST_BIT); in alloc_swap_info()