]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: add a swapfile activation function
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 10 May 2018 15:38:15 +0000 (08:38 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 00:57:05 +0000 (17:57 -0700)
commit52b2f08401529732a3294d5beaf45fdadc8afc0d
tree074b330967f8c3f8964cd6152ca0d948b6e727a4
parent5540e223d7bdfbe3d1241066d70a656c98fbdb75
iomap: add a swapfile activation function

Add a new iomap_swapfile_activate function so that filesystems can
activate swap files without having to use the obsolete and slow bmap
function.  This enables XFS to support fallocate'd swap files and
swap files on realtime devices.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/iomap.c
fs/xfs/xfs_aops.c
include/linux/iomap.h