16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells #ifndef FADVISE_H_INCLUDED 3607ca46eSDavid Howells #define FADVISE_H_INCLUDED 4607ca46eSDavid Howells 5607ca46eSDavid Howells #define POSIX_FADV_NORMAL 0 /* No further special treatment. */ 6607ca46eSDavid Howells #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ 7607ca46eSDavid Howells #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ 8607ca46eSDavid Howells #define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ 9607ca46eSDavid Howells 10607ca46eSDavid Howells /* 11607ca46eSDavid Howells * The advise values for POSIX_FADV_DONTNEED and POSIX_ADV_NOREUSE 12607ca46eSDavid Howells * for s390-64 differ from the values for the rest of the world. 13607ca46eSDavid Howells */ 14607ca46eSDavid Howells #if defined(__s390x__) 15607ca46eSDavid Howells #define POSIX_FADV_DONTNEED 6 /* Don't need these pages. */ 16607ca46eSDavid Howells #define POSIX_FADV_NOREUSE 7 /* Data will be accessed once. */ 17607ca46eSDavid Howells #else 18607ca46eSDavid Howells #define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ 19607ca46eSDavid Howells #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ 20607ca46eSDavid Howells #endif 21607ca46eSDavid Howells 22607ca46eSDavid Howells #endif /* FADVISE_H_INCLUDED */ 23