Lines Matching refs:extend_table
519 WARN_ON_ONCE(nr == SWAPFILE_CLUSTER && ci->extend_table); in swap_cluster_assert_empty()
1470 table = kzalloc(sizeof(ci->extend_table[0]) * SWAPFILE_CLUSTER, gfp); in swap_extend_table_alloc()
1486 if (ci->extend_table) in swap_extend_table_alloc()
1489 ci->extend_table = table; in swap_extend_table_alloc()
1522 if (!ci->extend_table) in swap_extend_table_try_free()
1526 if (ci->extend_table[i]) in swap_extend_table_try_free()
1531 kfree(ci->extend_table); in swap_extend_table_try_free()
1532 ci->extend_table = NULL; in swap_extend_table_try_free()
1551 count = ci->extend_table[ci_off]; in __swap_cluster_put_entry()
1556 ci->extend_table[ci_off] = 0; in __swap_cluster_put_entry()
1559 ci->extend_table[ci_off] = count; in __swap_cluster_put_entry()
1663 VM_WARN_ON_ONCE(ci->extend_table && ci->extend_table[ci_off]); in __swap_cluster_dup_entry()
1665 if (ci->extend_table) { in __swap_cluster_dup_entry()
1666 VM_WARN_ON_ONCE(ci->extend_table[ci_off]); in __swap_cluster_dup_entry()
1667 ci->extend_table[ci_off] = SWP_TB_COUNT_MAX; in __swap_cluster_dup_entry()
1673 VM_WARN_ON_ONCE(ci->extend_table[ci_off] >= in __swap_cluster_dup_entry()
1674 type_max(typeof(ci->extend_table[0]))); in __swap_cluster_dup_entry()
1675 ++ci->extend_table[ci_off]; in __swap_cluster_dup_entry()
2011 count = ci->extend_table[swp_cluster_offset(entry)]; in swp_swapcount()