Lines Matching refs:swap_peak_fd
941 int swap_peak_fd = -1, mem_peak_fd = -1; in test_memcg_swap_max_peak() local
961 swap_peak_fd = cg_open(memcg, "memory.swap.peak", in test_memcg_swap_max_peak()
964 if (swap_peak_fd == -1) { in test_memcg_swap_max_peak()
975 if (fstat(swap_peak_fd, &ss)) in test_memcg_swap_max_peak()
991 if (cg_read_long_fd(swap_peak_fd)) in test_memcg_swap_max_peak()
995 int peak_reset = write(swap_peak_fd, reset_string, sizeof(reset_string)); in test_memcg_swap_max_peak()
1000 if (cg_read_long_fd(swap_peak_fd)) in test_memcg_swap_max_peak()
1050 peak = cg_read_long_fd(swap_peak_fd); in test_memcg_swap_max_peak()
1067 peak_reset = write(swap_peak_fd, reset_string, sizeof(reset_string)); in test_memcg_swap_max_peak()
1075 peak = cg_read_long_fd(swap_peak_fd); in test_memcg_swap_max_peak()
1112 peak = cg_read_long_fd(swap_peak_fd); in test_memcg_swap_max_peak()
1121 if (swap_peak_fd != -1 && close(swap_peak_fd)) in test_memcg_swap_max_peak()