Lines Matching refs:testfile
281 char testfile[INPUT_MAX]; in split_file_backed_thp() local
291 status = snprintf(testfile, INPUT_MAX, "%s/thp_file", tmpfs_loc); in split_file_backed_thp()
296 fd = open(testfile, O_CREAT|O_WRONLY, 0664); in split_file_backed_thp()
312 write_debugfs(PATH_FMT, testfile, pgoff_start, pgoff_end, 0); in split_file_backed_thp()
314 status = unlink(testfile); in split_file_backed_thp()
369 int create_pagecache_thp_and_fd(const char *testfile, size_t fd_size, int *fd, in create_pagecache_thp_and_fd() argument
377 *fd = open(testfile, O_CREAT | O_RDWR, 0664); in create_pagecache_thp_and_fd()
379 ksft_exit_fail_msg("Failed to create a file at %s\n", testfile); in create_pagecache_thp_and_fd()
399 *fd = open(testfile, O_RDWR); in create_pagecache_thp_and_fd()
420 unlink(testfile); in create_pagecache_thp_and_fd()
428 unlink(testfile); in create_pagecache_thp_and_fd()
438 char testfile[INPUT_MAX]; in split_thp_in_pagecache_to_order() local
441 err = snprintf(testfile, INPUT_MAX, "%s/test", fs_loc); in split_thp_in_pagecache_to_order()
446 err = create_pagecache_thp_and_fd(testfile, fd_size, &fd, &addr); in split_thp_in_pagecache_to_order()
469 unlink(testfile); in split_thp_in_pagecache_to_order()