vfs: fix check for fallocate on active swapfile
authorEric Biggers <ebiggers3@gmail.com>
Wed, 25 Jun 2014 04:45:08 +0000 (23:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 23:53:53 +0000 (16:53 -0700)
commit7a456400382ab4b9e6436182a010cee89e729890
tree37384786124a7a9ee47309ddd566362297b7e821
parentb3faa01ff2ef1e26255e5ee575912798fe9c242d
vfs: fix check for fallocate on active swapfile

commit 6d2b6170c8914c6c69256b687651fb16d7ec3e18 upstream.

Fix the broken check for calling sys_fallocate() on an active swapfile,
introduced by commit 0790b31b69374ddadefe ("fs: disallow all fallocate
operation on active swapfile").

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/open.c