mirror of https://gitee.com/openkylin/linux.git
a7c0b8bee2
xgbe_map_rx_buffer is rather confused about what PAGE_ALLOC_COSTLY_ORDER means. It uses PAGE_ALLOC_COSTLY_ORDER-1 assuming that PAGE_ALLOC_COSTLY_ORDER is the first costly order which is not the case actually because orders larger than that are costly. And even that applies only to sleeping allocations which is not the case here. We simply do not perform any costly operations like reclaim or compaction for those. Simplify the code by dropping the order calculation and use PAGE_ALLOC_COSTLY_ORDER directly. Signed-off-by: Michal Hocko <mhocko@suse.com> Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Makefile | ||
xgbe-common.h | ||
xgbe-dcb.c | ||
xgbe-debugfs.c | ||
xgbe-desc.c | ||
xgbe-dev.c | ||
xgbe-drv.c | ||
xgbe-ethtool.c | ||
xgbe-i2c.c | ||
xgbe-main.c | ||
xgbe-mdio.c | ||
xgbe-pci.c | ||
xgbe-phy-v1.c | ||
xgbe-phy-v2.c | ||
xgbe-platform.c | ||
xgbe-ptp.c | ||
xgbe.h |