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)
commitbd89bc67f64fa23846645ce8b1c3cb51efebab32
tree628058e2e3a2ac38c5260e4b38f8a2238acfe97d
parentb8457606d95f219052cbcf07bd54c24c4290cd49
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