Re: [PATCH v38 16/24] x86/sgx: Add a page reclaimer

Jarkko Sakkinen
2020-09-23T15:39:59Z

> if (IS_ERR(va_page)) <- needed a new VA page, allocation failed
> return PTR_ERR(va_page);
> else if (va_page) <- needed a new VA page, allocation succeeded
> list_add(&va_page->list, &encl->va_pages);
> else
> <- reused the current VA page

/* else the tail page of the VA page list had free slots. */

I added this comment as "the missing branch".

/Jarkko