Message ID | 20200831140127.657134-1-nsoffer@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | Replace posix_fallocate() with falloate() | expand |
Patchew URL: https://patchew.org/QEMU/20200831140127.657134-1-nsoffer@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20200831140127.657134-1-nsoffer@redhat.com Subject: [PATCH 0/2] Replace posix_fallocate() with falloate() === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === From https://github.com/patchew-project/qemu * [new tag] patchew/20200831140127.657134-1-nsoffer@redhat.com -> patchew/20200831140127.657134-1-nsoffer@redhat.com Switched to a new branch 'test' 70e35ed block: file-posix: Replace posix_fallocate with fallocate 35d89d1 block: file-posix: Extract preallocate helpers === OUTPUT BEGIN === 1/2 Checking commit 35d89d1300e4 (block: file-posix: Extract preallocate helpers) ERROR: braces {} are necessary for all arms of this statement #33: FILE: block/file-posix.c:1841: + if (offset == current_length) [...] total: 1 errors, 0 warnings, 234 lines checked Patch 1/2 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 2/2 Checking commit 70e35eda5bc9 (block: file-posix: Replace posix_fallocate with fallocate) ERROR: braces {} are necessary for all arms of this statement #110: FILE: block/file-posix.c:1967: + if (result != -ENOTSUP) [...] total: 1 errors, 0 warnings, 108 lines checked Patch 2/2 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/20200831140127.657134-1-nsoffer@redhat.com/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-devel@redhat.com
On Mon, Aug 31, 2020 at 5:01 PM Nir Soffer <nirsof@gmail.com> wrote: > > Change preallocation=falloc to use fallocate() instead of > posix_fallocte(), improving performance when legacy filesystem that do > not support fallocate, and avoiding issues seen with OFD locks. > > More work is needed to respect cache mode when using full preallocation > and maybe optimize buffer size. > > Continuing the discussion at: > https://lists.nongnu.org/archive/html/qemu-block/2020-08/msg00947.html > > Nir Soffer (2): > block: file-posix: Extract preallocate helpers > block: file-posix: Replace posix_fallocate with fallocate > > block/file-posix.c | 202 ++++++++++++++----------- > docs/system/qemu-block-drivers.rst.inc | 11 +- > docs/tools/qemu-img.rst | 11 +- > qapi/block-core.json | 4 +- > 4 files changed, 127 insertions(+), 101 deletions(-) Ping