Re: [PATCH] bufio: round up block size to power of 2

2018-04-23 Thread Michael Chang
On Mon, Apr 23, 2018 at 03:57:22PM +0200, Daniel Kiper wrote: > On Fri, Apr 20, 2018 at 03:21:30PM +0800, Michael Chang wrote: > > Rounding up the bufio->block_size to meet power of 2 to facilitate next_buf > > calcuation in grub_bufio_read. > > > > Signed-off-by: Michael Chang > > --- > > grub-c

Re: [PATCH] bufio: round up block size to power of 2

2018-04-23 Thread Daniel Kiper
On Fri, Apr 20, 2018 at 03:21:30PM +0800, Michael Chang wrote: > Rounding up the bufio->block_size to meet power of 2 to facilitate next_buf > calcuation in grub_bufio_read. > > Signed-off-by: Michael Chang > --- > grub-core/io/bufio.c | 8 > 1 file changed, 8 insertions(+) > > diff --gi

[PATCH] bufio: round up block size to power of 2

2018-04-20 Thread Michael Chang
Rounding up the bufio->block_size to meet power of 2 to facilitate next_buf calcuation in grub_bufio_read. Signed-off-by: Michael Chang --- grub-core/io/bufio.c | 8 1 file changed, 8 insertions(+) diff --git a/grub-core/io/bufio.c b/grub-core/io/bufio.c index 22438277d..4d66b65a3 1006