[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACVXFVPQ9d1K86R0ebZc5OPtvDs-_Hk=GtEZy5mo0wzZstRQVA@mail.gmail.com>
Date: Fri, 1 Feb 2013 11:28:02 +0800
From: Ming Lei <ming.lei@...onical.com>
To: Joe Perches <joe@...ches.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
Felipe Balbi <balbi@...com>, stable@...r.kernel.org
Subject: Re: [PATCH] block: partition: optimize memory allocation in check_partition
On Fri, Feb 1, 2013 at 11:20 AM, Joe Perches <joe@...ches.com> wrote:
>> @@ -15,13 +15,15 @@ struct parsed_partitions {
>> int flags;
>> bool has_info;
>> struct partition_meta_info info;
>> - } parts[DISK_MAX_PARTS];
>> + } *parts;
>
> This is relatively unusual style.
> Could you break out this struct instead?
IMO, looks it isn't necessary since no one uses the type of the embedded
structure directly, and the style isn't introduced by this patch, which only
follows the previous one.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists