Skip to content

Commit 2f880a3

Browse files
committed
stress-io: add short lived file hint to tmp file
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent 31d4d38 commit 2f880a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stress-io.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*
1919
*/
2020
#include "stress-ng.h"
21+
#include "core-filesystem.h"
2122
#include "core-mounts.h"
2223

2324
#define MAX_MNTS (256)
@@ -77,6 +78,8 @@ static int stress_io(stress_args_t *args)
7778
}
7879
(void)shim_unlink(filename);
7980

81+
stress_fs_file_rw_hint_short(fd_tmp);
82+
8083
n_mnts = stress_mount_get(mnts, MAX_MNTS);
8184
for (i = 0; i < n_mnts; i++)
8285
fds[i] = openat(AT_FDCWD, mnts[i], O_RDONLY | O_NONBLOCK | O_DIRECTORY);

0 commit comments

Comments
 (0)