Re: [PATCH -mm] mm, swap: Simplify total_swapcache_pages() with get_swap_device()
From: Andrea Parri
Date: Mon May 27 2019 - 09:32:21 EST
> But where do I find get_swap_device() and put_swap_device()? I do not
> see them in current mainline.
You should see them in the -mm tree:
https://ozlabs.org/~akpm/mmots/broken-out/mm-swap-fix-race-between-swapoff-and-some-swap-operations.patch
or
http://git.cmpxchg.org/cgit.cgi/linux-mmots.git/commit/?id=87efc56527b92a59d15c5d4e4b05f875b276a59a
Thanks,
Andrea