From: Omar Sandoval <osandov@xxxxxx> Changes from v1: - Added patch 1 to provide more useful error messages (suggested by me) and move the bdev check (suggested by Christoph) - Changed patch 2 to simply delete the hole check, since it will be caught by the mapped || unwritten check below Based on xfs-linux/for-next. Thanks! Omar Sandoval (2): iomap: provide more useful errors for invalid swap files iomap: don't allow holes in swapfiles fs/iomap.c | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) -- 2.17.0