From: Zorro Lang <zlang@redhat.com>
To: linux-xfs@vger.kernel.org
Subject: [PATCH 2/3] xfsprogs: fix wrong do_pwritev definition
Date: Sun, 12 Nov 2017 01:21:54 +0800 [thread overview]
Message-ID: <20171111172155.31941-2-zlang@redhat.com> (raw)
In-Reply-To: <20171111172155.31941-1-zlang@redhat.com>
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.
Signed-off-by: Zorro Lang <zlang@redhat.com>
---
io/pwrite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io/pwrite.c b/io/pwrite.c
index 3df976a8..a89edfd0 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.13.6
next prev parent reply other threads:[~2017-11-11 17:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-11 17:21 [PATCH 1/3] xfsprogs: fix wrong variable type in write_once function Zorro Lang
2017-11-11 17:21 ` Zorro Lang [this message]
2017-11-16 20:33 ` [PATCH 2/3] xfsprogs: fix wrong do_pwritev definition Eric Sandeen
2017-11-11 17:21 ` [PATCH 3/3] xfsprogs: remove useless do_preadv and do_pwritev arguments Zorro Lang
2017-11-16 20:34 ` Eric Sandeen
2018-09-27 18:38 ` Eric Sandeen
2018-09-28 1:39 ` Zorro Lang
2017-11-16 20:33 ` [PATCH 1/3] xfsprogs: fix wrong variable type in write_once function Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171111172155.31941-2-zlang@redhat.com \
--to=zlang@redhat.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).