Skip to content

Commit

Permalink
stress-mmaptorture: move #endif
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Feb 17, 2025
1 parent 6839058 commit 5b63af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-mmaptorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,14 +421,14 @@ static int stress_mmaptorture_child(stress_args_t *args, void *context)
#if defined(HAVE_LINUX_MEMPOLICY_H)
if (numa_mask && stress_mwc1()) {
stress_numa_randomize_pages(numa_mask, (void *)ptr, page_size, mmap_size);
#endif

#if defined(HAVE_MSYNC) && \
defined(MS_SYNC) && \
defined(MS_ASYNC)
stress_mmaptorture_msync(ptr, mmap_size, page_size);
#endif
}
#endif
#if defined(HAVE_MADVISE)
(void)madvise((void *)ptr, mmap_size, madvise_option);
#endif
Expand Down

0 comments on commit 5b63af1

Please sign in to comment.