linux/fs/overlayfs
Amir Goldstein 0f831ec85e ovl: simplify ovl_same_sb() helper
No code uses the sb returned from this helper, so make it retrun a boolean
and rename it to ovl_same_fs().

The xino mode is irrelevant when all layers are on same fs, so instead of
describing samefs with mode OVL_XINO_OFF, use a new xino_mode state, which
is 0 in the case of samefs, -1 in the case of xino=off and > 0 with xino
enabled.

Create a new helper ovl_same_dev(), to use instead of the common check for
(ovl_same_fs() || xinobits).

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-01-24 09:46:45 +01:00
..
copy_up.c ovl: improving copy-up efficiency for big sparse file 2020-01-22 20:11:41 +01:00
dir.c
export.c ovl: generalize the lower_layers[] array 2020-01-22 20:11:41 +01:00
file.c ovl: use ovl_inode_lock in ovl_llseek() 2020-01-22 20:11:41 +01:00
inode.c ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00
Kconfig
Makefile
namei.c ovl: generalize the lower_layers[] array 2020-01-22 20:11:41 +01:00
overlayfs.h ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00
ovl_entry.h ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00
readdir.c ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00
super.c ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00
util.c ovl: simplify ovl_same_sb() helper 2020-01-24 09:46:45 +01:00