From ac9a7bc98eecf7589fcc21568527ce00719b24c0 Mon Sep 17 00:00:00 2001 From: Zirong Lang Date: Mon, 20 Nov 2017 13:53:56 -0600 Subject: [PATCH] xfsprogs: fix wrong do_pwritev definition In io/pwrite.c, if not define HAVE_PWRITEV, we will use: #define do_pwritev(fd, offset, count, buffer_size) (0) But the real do_pwritev() function is: do_pwritev(fd, offset, count, buffer_size, pwritev2_flags); There's one more 'pwritev2_flags' argument. Fixes: c5deeac9 "xfs_io: Add support for pwritev2()" Signed-off-by: Zorro Lang Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- io/pwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/pwrite.c b/io/pwrite.c index 3df976a89..a89edfd04 100644 --- a/io/pwrite.c +++ b/io/pwrite.c @@ -102,7 +102,7 @@ do_pwritev( return bytes; } #else -#define do_pwritev(fd, offset, count, buffer_size) (0) +#define do_pwritev(fd, offset, count, buffer_size, pwritev2_flags) (0) #endif static ssize_t -- 2.47.2