ovl: fix some xino configurations
authorAmir Goldstein <amir73il@gmail.com>
Fri, 21 Feb 2020 14:34:42 +0000 (16:34 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 13 Mar 2020 14:53:06 +0000 (15:53 +0100)
commit53afcd310e867d25e394718558783c476301205c
tree2d3d1f420d360e1c0aacbee9d9c6c93951145849
parent531d3040bc5cf37dea01b118608347cca9325f9d
ovl: fix some xino configurations

Fix up two bugs in the coversion to xino_mode:
1. xino=off does not always end up in disabled mode
2. xino=auto on 32bit arch should end up in disabled mode

Take a proactive approach to disabling xino on 32bit kernel:
1. Disable XINO_AUTO config during build time
2. Disable xino with a warning on mount time

As a by product, xino=on on 32bit arch also ends up in disabled mode.
We never intended to enable xino on 32bit arch and this will make the
rest of the logic simpler.

Fixes: 0f831ec85eda ("ovl: simplify ovl_same_sb() helper")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/Kconfig
fs/overlayfs/super.c