OSDN Git Service

ceph: return -EINVAL if given fsc mount option on kernel w/o support
authorJeff Layton <jlayton@kernel.org>
Thu, 7 Nov 2019 14:39:32 +0000 (09:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:19:45 +0000 (09:19 +0100)
commita8a61f82cc9ff679a5621952f907f129acc23cd6
tree55bcc9983ccc4e7ad0172c88c6ca75bfa52c4ec0
parent0f716cda304bd3b80edf65ccf3d4a087c06c04fe
ceph: return -EINVAL if given fsc mount option on kernel w/o support

[ Upstream commit ff29fde84d1fc82f233c7da0daa3574a3942bec7 ]

If someone requests fscache on the mount, and the kernel doesn't
support it, it should fail the mount.

[ Drop ceph prefix -- it's provided by pr_err. ]

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ceph/super.c