close(kpageflags_fd);
 }
 
-void split_file_backed_thp(void)
+void split_file_backed_thp(int order)
 {
        int status;
        int fd;
        }
 
        /* split the file-backed THP */
-       write_debugfs(PATH_FMT, testfile, pgoff_start, pgoff_end, 0);
+       write_debugfs(PATH_FMT, testfile, pgoff_start, pgoff_end, order);
 
        /* check file content after split */
        status = lseek(fd, 0, SEEK_SET);
                ksft_exit_fail_msg("cannot remove tmp dir: %s\n", strerror(errno));
 
        ksft_print_msg("Please check dmesg for more information\n");
-       ksft_test_result_pass("File-backed THP split test done\n");
+       ksft_test_result_pass("File-backed THP split to order %d test done\n", order);
        return;
 
 close_file:
        if (argc > 1)
                optional_xfs_path = argv[1];
 
-       ksft_set_plan(1+8+2+9);
+       ksft_set_plan(1+8+1+9+9);
 
        pagesize = getpagesize();
        pageshift = ffs(pagesize) - 1;
                        split_pmd_thp_to_order(i);
 
        split_pte_mapped_thp();
-       split_file_backed_thp();
+       for (i = 0; i < 9; i++)
+               split_file_backed_thp(i);
 
        created_tmp = prepare_thp_fs(optional_xfs_path, fs_loc_template,
                        &fs_loc);