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 <npig...@gmail.com>
Cc: Andrew Morton <a...@linux-foundation.org>
Cc: Matthew Wilcox (Oracle) <wi...@infradead.org>
Cc: Yang Shi <yang....@linux.alibaba.com>
Cc: linux...@kvack.org
Cc: linux-kernel@vger.kernel.org

Reply via email to