]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: fix check for fallocate on active swapfile
authorEric Biggers <ebiggers3@gmail.com>
Wed, 25 Jun 2014 04:45:08 +0000 (23:45 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Aug 2014 06:36:04 +0000 (02:36 -0400)
commit2955f04d22750903ee78739756d267b0dbe17f90
treef3a2cb3335d8497e4cebcb2b3ab2291c6d1308db
parent87ea6672302ea450189bb81d39beaf1b83bcd3f2
vfs: fix check for fallocate on active swapfile

Fix the broken check for calling sys_fallocate() on an active swapfile,
introduced by commit 2e31ca1a886a80ce5ed9 ("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>
fs/open.c