> 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