]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3cad78e0c9bfb010122353490dd7252f0be52143
treeac6daf0dc694e27eaf143cd619459156c4ea477f
parentc652c4f070e55753f2f757859c7149f306eb8784
fs: disallow all fallocate operation on active swapfile

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