]> 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)
commit4012c04832635ab54b56cce65fd5276c224aa9f2
treef3a2cb3335d8497e4cebcb2b3ab2291c6d1308db
parent540d3e0581f08d9225d4e7f70c170e3702646591
vfs: fix check for fallocate on active swapfile

Fix the broken check for calling sys_fallocate() on an active swapfile,
introduced by commit 3cad78e0c9bfb0101223 ("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