]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: remove useless do_preadv and do_pwritev arguments
authorZorro Lang <zlang@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:47 +0000 (11:49 -0500)
commit248b6f9a4bbc5c4fc099cd3e71b8029227af134b
tree467c2045b2c2cb002d596c1fe0991b78bb14f9b0
parent8791bf6b2f01e46477d8426a792d1e5dcbd291ca
xfs_io: remove useless do_preadv and do_pwritev arguments

do_preadv and do_pwritev all have a 'buffer_size' argument, but they
never used it. Instead of it, they use global 'buffersize' variable,
which is initialized in alloc_buffer(). As the 'buffer_size' is
useless, so remove it for clear code.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/pread.c
io/pwrite.c