mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* lib/genalloc
@ 2018-11-01 16:43 Alexey Skidanov
  2018-11-01 16:48 ` lib/genalloc Stephen  Bates
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Skidanov @ 2018-11-01 16:43 UTC (permalink / raw)
  To: sbates, danielmentz, mathieu.desnoyers
  Cc: Linux Kernel Mailing List, Laura Abbott

Hi,

I use gen_pool_first_fit_align() as pool allocation algorithm allocating
buffers with requested alignment. But if a chunk base address is not
aligned to the requested alignment(from some reason), the returned
address is not aligned too.

The reason is the allocation algorithm works on bitmap, omitting the
base address. Is this behavior by design?

Thanks,
Alexey

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-02 22:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 16:43 lib/genalloc Alexey Skidanov
2018-11-01 16:48 ` lib/genalloc Stephen  Bates
2018-11-01 17:08   ` lib/genalloc Alexey Skidanov
2018-11-02 19:17     ` lib/genalloc Daniel Mentz
2018-11-02 20:56       ` lib/genalloc Alexey Skidanov
2018-11-02 21:16         ` lib/genalloc Daniel Mentz
2018-11-02 22:18           ` lib/genalloc Alexey Skidanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®