> > If this is doable, I think we can return xa_store(..) and keep the > > logic in the caller. I think there's a chance > > zswap_{search/insert/erase} may end up being very thin wrappers around > > xa_{load/store/erase}, and we may be able to remove them completely. > > Let's see how it goes. > > > > See my other email about erasing an entry raced into a new entry. That > is the part I am not certain. > Anyway, when zswap adopte folio, then it might need to handle multi > entry, we will be back to using the XAS API. Handling large folios in zswap is a much larger topic that involves a lot more than this xa_* vs. xas_* apis dispute. Let's not worry about this for now.