From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: [PATCH 4/4] fs: Disallow all fallocate operation on active swapfile Date: Sat, 12 Apr 2014 10:06:33 -0400 Message-ID: <20140412140633.GD13837@thunk.org> References: <1397242665-2183-1-git-send-email-lczerner@redhat.com> <1397242665-2183-4-git-send-email-lczerner@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-ext4@vger.kernel.org, xfs@oss.sgi.com To: Lukas Czerner Return-path: Content-Disposition: inline In-Reply-To: <1397242665-2183-4-git-send-email-lczerner@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com List-Id: linux-ext4.vger.kernel.org On Fri, Apr 11, 2014 at 08:57:45PM +0200, Lukas Czerner wrote: > Currently some file system have IS_SWAPFILE check in their fallocate > implementations and some does not. However we should really prevent any > fallocate operation on swapfile so move the check to vfs and remove the > redundant checks from the file systems fallocate implementations. > > Signed-off-by: Lukas Czerner > --- > fs/ceph/file.c | 3 --- > fs/ext4/extents.c | 5 ----- > fs/ext4/inode.c | 5 ----- > fs/open.c | 7 +++++++ > 4 files changed, 7 insertions(+), 13 deletions(-) Thanks, applied. Again, if anyone has an objections with my carrying these patches in the ext4 tree and pushing them to Linus shortly after -rc1, please let me know. - Ted _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs