swapon(2)/swapoff(2): don't bother with block size
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Apr 2024 22:26:54 +0000 (18:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2024 21:23:30 +0000 (17:23 -0400)
commit798cb7f9aec35460c383eab57b9fa474d999a2eb
treefdd00b34c35fe91115fc67745307c1cbf0ad8767
parent3a52c03d1ece8f480d6a6c35d92f7c1c6215d2a6
swapon(2)/swapoff(2): don't bother with block size

once upon a time that used to matter; these days we do swap IO for
swap devices at the level that doesn't give a damn about block size,
buffer_head or anything of that sort - just attach the page to
bio, set the location and size (the latter to PAGE_SIZE) and feed
into queue.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/swap.h
mm/swapfile.c