]> 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)
commit8373345c2b358a9b973107a59d05d9c21b5fc50a
tree628058e2e3a2ac38c5260e4b38f8a2238acfe97d
parent1f9b06ac658dfd94c6607d00355e184adb33c381
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