]> git.baikalelectronics.ru Git - kernel.git/commit
fs/nfs, swapon: check holes in swapfile
authorMurphy Zhou <jencce.kernel@gmail.com>
Thu, 2 Jan 2020 08:04:26 +0000 (16:04 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:31 +0000 (10:54 -0500)
commite2220688816b98f30809a82d8dd32f0226ca5b9a
tree628058e2e3a2ac38c5260e4b38f8a2238acfe97d
parent0fb614b944b6af50efb58529aa203f186d63e62b
fs/nfs, swapon: check holes in swapfile

swapon over NFS does not go through generic_swapfile_activate
code path when setting up extents. This makes holes in NFS
swapfiles possible which is not expected for swapon.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c