Lines Matching refs:testfile
486 char testfile[INPUT_MAX]; in split_file_backed_thp() local
511 status = snprintf(testfile, INPUT_MAX, "%s/thp_file", tmpfs_loc); in split_file_backed_thp()
517 fd = open(testfile, O_CREAT|O_RDWR, 0664); in split_file_backed_thp()
532 write_debugfs(PATH_FMT, testfile, pgoff_start, pgoff_end, order); in split_file_backed_thp()
553 status = unlink(testfile); in split_file_backed_thp()
611 static int create_pagecache_thp_and_fd(const char *testfile, size_t fd_size, in create_pagecache_thp_and_fd() argument
619 *fd = open(testfile, O_CREAT | O_RDWR, 0664); in create_pagecache_thp_and_fd()
621 ksft_exit_fail_msg("Failed to create a file at %s\n", testfile); in create_pagecache_thp_and_fd()
642 *fd = open(testfile, O_RDWR); in create_pagecache_thp_and_fd()
665 unlink(testfile); in create_pagecache_thp_and_fd()
673 unlink(testfile); in create_pagecache_thp_and_fd()
685 char testfile[INPUT_MAX]; in split_thp_in_pagecache_to_order_at() local
688 err = snprintf(testfile, INPUT_MAX, "%s/test", fs_loc); in split_thp_in_pagecache_to_order_at()
693 err = create_pagecache_thp_and_fd(testfile, fd_size, &fd, &addr); in split_thp_in_pagecache_to_order_at()
748 unlink(testfile); in split_thp_in_pagecache_to_order_at()