linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* strange PAGE_ALLOC_COSTLY_ORDER usage in xgbe_map_rx_buffer
@ 2017-05-31 16:04 Michal Hocko
  2017-06-02 14:20 ` Tom Lendacky
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Hocko @ 2017-05-31 16:04 UTC (permalink / raw)
  To: Tom Lendacky; +Cc: linux-mm, LKML

Hi Tom,
I have stumbled over the following construct in xgbe_map_rx_buffer
	order = max_t(int, PAGE_ALLOC_COSTLY_ORDER - 1, 0);
which looks quite suspicious. Why does it PAGE_ALLOC_COSTLY_ORDER - 1?
And why do you depend on PAGE_ALLOC_COSTLY_ORDER at all?

Thanks!
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2017-06-03  1:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 16:04 strange PAGE_ALLOC_COSTLY_ORDER usage in xgbe_map_rx_buffer Michal Hocko
2017-06-02 14:20 ` Tom Lendacky
2017-06-02 14:43   ` Michal Hocko
2017-06-02 15:41     ` Tom Lendacky
2017-06-03  1:25     ` [PATCH] amd-xgbe: use PAGE_ALLOC_COSTLY_ORDER " kbuild test robot

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