Lines Matching refs:SWAP_USAGE_OFFLIST_BIT
156 #define SWAP_USAGE_OFFLIST_BIT (1UL << (BITS_PER_TYPE(atomic_t) - 2))
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);
1016 * full and SWAP_USAGE_OFFLIST_BIT is not set (strictly
1023 pages | SWAP_USAGE_OFFLIST_BIT))
1034 /* SWAP_USAGE_OFFLIST_BIT can only be cleared by this helper. */
1052 if (!(atomic_long_read(&si->inuse_pages) & SWAP_USAGE_OFFLIST_BIT))
1055 val = atomic_long_fetch_and_relaxed(~SWAP_USAGE_OFFLIST_BIT, &si->inuse_pages);
1066 pages | SWAP_USAGE_OFFLIST_BIT))
1087 * If device is full, and SWAP_USAGE_OFFLIST_BIT is not set,
1103 * If device is not full, and SWAP_USAGE_OFFLIST_BIT is set,
1106 if (unlikely(val & SWAP_USAGE_OFFLIST_BIT))
3026 atomic_long_set(&p->inuse_pages, SWAP_USAGE_OFFLIST_BIT);