Skip to content

Commit b5b999d

Browse files
committed
tools headers UAPI: Sync linux/fs.h with the kernel
To pick up the changes in: c553ea4 ("fs/sync.c: sync_file_range(2) may use WB_SYNC_ALL writeback") That should be used to beautify the 'sync_file_range' syscall 'flags' arg. This silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/fs.h' differs from latest version at 'include/uapi/linux/fs.h' diff -u tools/include/uapi/linux/fs.h include/uapi/linux/fs.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Amir Goldstein <amir73il@gmail.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-at3uoqcvmqdkwaysmvbj1wpv@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent c27de2b commit b5b999d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • tools/include/uapi/linux

‎tools/include/uapi/linux/fs.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ struct fscrypt_key {
320320
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
321321
#define SYNC_FILE_RANGE_WRITE 2
322322
#define SYNC_FILE_RANGE_WAIT_AFTER 4
323+
#define SYNC_FILE_RANGE_WRITE_AND_WAIT (SYNC_FILE_RANGE_WRITE | \
324+
SYNC_FILE_RANGE_WAIT_BEFORE | \
325+
SYNC_FILE_RANGE_WAIT_AFTER)
323326

324327
/*
325328
* Flags for preadv2/pwritev2:

0 commit comments

Comments
 (0)