linux/fs/overlayfs
Amir Goldstein 4c37e71b71 ovl: fix wrong WARN_ON() in ovl_cache_update_ino()
The WARN_ON() that child entry is always on overlay st_dev became wrong
when we allowed this function to update d_ino in non-samefs setup with xino
enabled.

It is not true in case of xino bits overflow on a non-dir inode.  Leave the
WARN_ON() only for directories, where assertion is still true.

Fixes: adbf4f7ea8 ("ovl: consistent d_ino for non-samefs with xino")
Cc: <stable@vger.kernel.org> # v4.17+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-01-22 20:11:41 +01:00
..
copy_up.c ovl: don't use a temp buf for encoding real fh 2019-12-10 16:00:55 +01:00
dir.c ovl: relax WARN_ON() on rename to self 2019-12-10 16:00:55 +01:00
export.c ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
file.c SPDX update for 5.2-rc6 2019-06-21 09:58:42 -07:00
inode.c ovl: fix corner case of non-unique st_dev;st_ino 2019-12-10 16:00:55 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c overlayfs fixes for 5.5-rc2 2019-12-14 11:13:54 -08:00
overlayfs.h ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
ovl_entry.h ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
readdir.c ovl: fix wrong WARN_ON() in ovl_cache_update_ino() 2020-01-22 20:11:41 +01:00
super.c ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
util.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00