First of all, I think this little slice of code is a bit under-documented. Perhaps this will help clarify things.
I'm pretty confident the page_count() check in the first patch is right, which is why I removed it outright. The xas_load() check is a bit murkier, so I just left a warning in for it. Cc: Nicholas Piggin <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Yang Shi <[email protected]> Cc: [email protected] Cc: [email protected]

