On Fri, May 12, 2017 at 11:21:24AM +0900, Minchan Kim wrote: > The add_to_swap aims to allocate swap_space(ie, swap slot and > swapcache) so if it fails due to lack of space in case of THP > or something(hdd swap but tries THP swapout) *caller* rather > than add_to_swap itself should split the THP page and retry it > with base page which is more natural. > > Cc: Johannes Weiner <hannes@xxxxxxxxxxx> > Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>