From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f66.google.com ([209.85.160.66]:38556 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbeEPQp6 (ORCPT ); Wed, 16 May 2018 12:45:58 -0400 Received: by mail-pl0-f66.google.com with SMTP id c11-v6so757171plr.5 for ; Wed, 16 May 2018 09:45:58 -0700 (PDT) From: Omar Sandoval Subject: [PATCH v2 0/2] iomap: swapfile tweaks Date: Wed, 16 May 2018 09:45:49 -0700 Message-Id: Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: "Darrick J . Wong" , linux-xfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, Jan Kara , Christoph Hellwig , Aleksei Besogonov , kernel-team@fb.com From: Omar Sandoval 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