hugetlbfs: use non atomic ops when the page is private

After the page has been freed it's fully private and no other CPU can
manipulate the page structure anymore (other than get_page_unless_zero
from speculative lookups, but those will fail because of the zero

The same is true when the page has been newly allocated.

So we can use faster non atomic ops for those cases.

Signed-off-by: Andrea Arcangeli <>
1 file changed