Skip to content
Commit 60fdceaa authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

swap: fix swapfile read/write offset

commit caf6912f upstream.

We're not factoring in the start of the file for where to write and
read the swapfile, which leads to very unfortunate side effects of
writing where we should not be...

Fixes: dd6bd0d9

 ("swap: use bdev_read_page() / bdev_write_page()")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Cc: Anthony Iliopoulos <ailiop@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bebf5e83
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment