fs: disallow all fallocate operation on active swapfile
authorLukas Czerner <lczerner@redhat.com>
Sat, 12 Apr 2014 14:05:37 +0000 (10:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 Apr 2014 14:05:37 +0000 (10:05 -0400)
Currently some file system have IS_SWAPFILE check in their fallocate
implementations and some do 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 <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ceph/file.c
fs/ext4/extents.c
fs/ext4/inode.c
fs/open.c

diff --cc fs/ceph/file.c
Simple merge
Simple merge
diff --cc fs/ext4/inode.c
Simple merge
diff --cc fs/open.c
Simple merge