[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/9] block: Move json: parsing to bdrv_fill_opti
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 3/9] block: Move json: parsing to bdrv_fill_options() |
Date: |
Thu, 12 Jun 2014 07:47:16 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/12/2014 06:26 AM, Benoît Canet wrote:
>> +static QDict *parse_json_filename(const char *filename, Error **errp)
>> +{
>
> I am under the impression that this code move could be avoided by using a
> function
> prototype: the patch would be less cluttered.
I'm a fan of avoiding function prototypes for static functions when
possible (listing things in topological order is nicer for someone
reading the file for the first time - prototypes only help for recursive
functions), so I'm in favor of keeping the code motion. But splitting
code motion into its own patch rather than mixing it with other changes
is nicer on reviewers.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 0/9] bdrv_open() cleanups, part 1, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 1/9] block: Create bdrv_fill_options(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 2/9] block: Move bdrv_fill_options() call to bdrv_open(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 3/9] block: Move json: parsing to bdrv_fill_options(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 4/9] block: Always pass driver name through options QDict, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 5/9] block: Use common driver selection code for bdrv_open_file(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 6/9] block: Inline bdrv_file_open(), Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 7/9] block: Remove second bdrv_open() recursion, Kevin Wolf, 2014/06/11
- [Qemu-devel] [PATCH 8/9] block: Catch backing files assigned to non-COW drivers, Kevin Wolf, 2014/06/11