Lines Matching refs:extend_table
471 WARN_ON_ONCE(nr == SWAPFILE_CLUSTER && ci->extend_table); in swap_cluster_assert_empty()
1449 table = kzalloc(sizeof(ci->extend_table[0]) * SWAPFILE_CLUSTER, gfp); in swap_extend_table_alloc()
1454 if (!ci->extend_table) in swap_extend_table_alloc()
1455 ci->extend_table = table; in swap_extend_table_alloc()
1485 if (!ci->extend_table) in swap_extend_table_try_free()
1489 if (ci->extend_table[i]) in swap_extend_table_try_free()
1494 kfree(ci->extend_table); in swap_extend_table_try_free()
1495 ci->extend_table = NULL; in swap_extend_table_try_free()
1514 count = ci->extend_table[ci_off]; in __swap_cluster_put_entry()
1519 ci->extend_table[ci_off] = 0; in __swap_cluster_put_entry()
1523 ci->extend_table[ci_off] = count; in __swap_cluster_put_entry()
1618 VM_WARN_ON_ONCE(ci->extend_table && ci->extend_table[ci_off]); in __swap_cluster_dup_entry()
1620 if (ci->extend_table) { in __swap_cluster_dup_entry()
1621 VM_WARN_ON_ONCE(ci->extend_table[ci_off]); in __swap_cluster_dup_entry()
1622 ci->extend_table[ci_off] = SWP_TB_COUNT_MAX; in __swap_cluster_dup_entry()
1628 VM_WARN_ON_ONCE(ci->extend_table[ci_off] >= in __swap_cluster_dup_entry()
1629 type_max(typeof(ci->extend_table[0]))); in __swap_cluster_dup_entry()
1630 ++ci->extend_table[ci_off]; in __swap_cluster_dup_entry()
1944 count = ci->extend_table[swp_cluster_offset(entry)]; in swp_swapcount()