• Home
  • Raw
  • Download

Lines Matching refs:ci

352 	struct swap_cluster_info *ci;  in lock_cluster()  local
354 ci = si->cluster_info; in lock_cluster()
355 if (ci) { in lock_cluster()
356 ci += offset / SWAPFILE_CLUSTER; in lock_cluster()
357 spin_lock(&ci->lock); in lock_cluster()
359 return ci; in lock_cluster()
362 static inline void unlock_cluster(struct swap_cluster_info *ci) in unlock_cluster() argument
364 if (ci) in unlock_cluster()
365 spin_unlock(&ci->lock); in unlock_cluster()
375 struct swap_cluster_info *ci; in lock_cluster_or_swap_info() local
378 ci = lock_cluster(si, offset); in lock_cluster_or_swap_info()
380 if (!ci) in lock_cluster_or_swap_info()
383 return ci; in lock_cluster_or_swap_info()
387 struct swap_cluster_info *ci) in unlock_cluster_or_swap_info() argument
389 if (ci) in unlock_cluster_or_swap_info()
390 unlock_cluster(ci); in unlock_cluster_or_swap_info()
412 struct swap_cluster_info *ci, in cluster_list_add_tail() argument
426 ci_tail = ci + tail; in cluster_list_add_tail()
435 struct swap_cluster_info *ci) in cluster_list_del_first() argument
445 cluster_next(&ci[idx]), 0); in cluster_list_del_first()
470 struct swap_cluster_info *ci = si->cluster_info; in __free_cluster() local
472 cluster_set_flag(ci + idx, CLUSTER_FLAG_FREE); in __free_cluster()
473 cluster_list_add_tail(&si->free_clusters, ci, idx); in __free_cluster()
482 struct swap_cluster_info *info, *ci; in swap_do_scheduled_discard() local
495 ci = lock_cluster(si, idx * SWAPFILE_CLUSTER); in swap_do_scheduled_discard()
499 unlock_cluster(ci); in swap_do_scheduled_discard()
524 struct swap_cluster_info *ci = si->cluster_info; in alloc_cluster() local
527 cluster_list_del_first(&si->free_clusters, ci); in alloc_cluster()
528 cluster_set_count_flag(ci + idx, 0, 0); in alloc_cluster()
533 struct swap_cluster_info *ci = si->cluster_info + idx; in free_cluster() local
535 VM_BUG_ON(cluster_count(ci) != 0); in free_cluster()
622 struct swap_cluster_info *ci; in scan_swap_map_try_ssd_cluster() local
654 ci = lock_cluster(si, tmp); in scan_swap_map_try_ssd_cluster()
660 unlock_cluster(ci); in scan_swap_map_try_ssd_cluster()
782 struct swap_cluster_info *ci; in scan_swap_map_slots() local
874 ci = lock_cluster(si, offset); in scan_swap_map_slots()
878 unlock_cluster(ci); in scan_swap_map_slots()
889 unlock_cluster(ci); in scan_swap_map_slots()
897 unlock_cluster(ci); in scan_swap_map_slots()
998 struct swap_cluster_info *ci; in swap_alloc_cluster() local
1015 ci = lock_cluster(si, offset); in swap_alloc_cluster()
1017 cluster_set_count_flag(ci, SWAPFILE_CLUSTER, CLUSTER_FLAG_HUGE); in swap_alloc_cluster()
1020 unlock_cluster(ci); in swap_alloc_cluster()
1030 struct swap_cluster_info *ci; in swap_free_cluster() local
1032 ci = lock_cluster(si, offset); in swap_free_cluster()
1034 cluster_set_count_flag(ci, 0, 0); in swap_free_cluster()
1036 unlock_cluster(ci); in swap_free_cluster()
1304 struct swap_cluster_info *ci; in __swap_entry_free() local
1308 ci = lock_cluster_or_swap_info(p, offset); in __swap_entry_free()
1310 unlock_cluster_or_swap_info(p, ci); in __swap_entry_free()
1319 struct swap_cluster_info *ci; in swap_entry_free() local
1323 ci = lock_cluster(p, offset); in swap_entry_free()
1328 unlock_cluster(ci); in swap_entry_free()
1354 struct swap_cluster_info *ci; in put_swap_page() local
1365 ci = lock_cluster_or_swap_info(si, offset); in put_swap_page()
1367 VM_BUG_ON(!cluster_is_huge(ci)); in put_swap_page()
1375 cluster_clear_huge(ci); in put_swap_page()
1377 unlock_cluster_or_swap_info(si, ci); in put_swap_page()
1387 unlock_cluster_or_swap_info(si, ci); in put_swap_page()
1394 unlock_cluster_or_swap_info(si, ci); in put_swap_page()
1401 struct swap_cluster_info *ci; in split_swap_cluster() local
1407 ci = lock_cluster(si, offset); in split_swap_cluster()
1408 cluster_clear_huge(ci); in split_swap_cluster()
1409 unlock_cluster(ci); in split_swap_cluster()
1458 struct swap_cluster_info *ci; in page_swapcount() local
1466 ci = lock_cluster_or_swap_info(p, offset); in page_swapcount()
1468 unlock_cluster_or_swap_info(p, ci); in page_swapcount()
1491 struct swap_cluster_info *ci; in swap_swapcount() local
1493 ci = lock_cluster_or_swap_info(si, offset); in swap_swapcount()
1495 unlock_cluster_or_swap_info(si, ci); in swap_swapcount()
1525 struct swap_cluster_info *ci; in swp_swapcount() local
1536 ci = lock_cluster_or_swap_info(p, offset); in swp_swapcount()
1559 unlock_cluster_or_swap_info(p, ci); in swp_swapcount()
1566 struct swap_cluster_info *ci; in swap_page_trans_huge_swapped() local
1573 ci = lock_cluster_or_swap_info(si, offset); in swap_page_trans_huge_swapped()
1574 if (!ci || !cluster_is_huge(ci)) { in swap_page_trans_huge_swapped()
1586 unlock_cluster_or_swap_info(si, ci); in swap_page_trans_huge_swapped()
1612 struct swap_cluster_info *ci = NULL; in page_trans_huge_map_swapcount() local
1642 ci = lock_cluster(si, offset); in page_trans_huge_map_swapcount()
1652 unlock_cluster(ci); in page_trans_huge_map_swapcount()
3231 unsigned long ci, nr_cluster; in SYSCALL_DEFINE2() local
3256 for (ci = 0; ci < nr_cluster; ci++) in SYSCALL_DEFINE2()
3257 spin_lock_init(&((cluster_info + ci)->lock)); in SYSCALL_DEFINE2()
3430 struct swap_cluster_info *ci; in __swap_duplicate() local
3441 ci = lock_cluster_or_swap_info(p, offset); in __swap_duplicate()
3484 unlock_cluster_or_swap_info(p, ci); in __swap_duplicate()
3573 struct swap_cluster_info *ci; in add_swap_count_continuation() local
3599 ci = lock_cluster(si, offset); in add_swap_count_continuation()
3664 unlock_cluster(ci); in add_swap_count_continuation()