android_kernel_motorola_sm6375/fs/overlayfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Konstantin Khlebnikov 8c85e455f7 ovl: skip overlayfs superblocks at global sync
[ Upstream commit 32b1924b210a70dcacdf65abd687c5ef86a67541 ]

Stacked filesystems like overlayfs has no own writeback, but they have to
forward syncfs() requests to backend for keeping data integrity.

During global sync() each overlayfs instance calls method ->sync_fs() for
backend although it itself is in global list of superblocks too.  As a
result one syscall sync() could write one superblock several times and send
multiple disk barriers.

This patch adds flag SB_I_SKIP_SYNC into sb->sb_iflags to avoid that.

Reported-by: Dmitry Monakhov <[email protected]>
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Stable-dep-of: b836c4d29f27 ("ima: detect changes to the backing overlay file")
Signed-off-by: Sasha Levin <[email protected]>
2023-12-08 08:44:27 +01:00
..
copy_up.c overlayfs: set ctime when setting mtime and atime 2023-10-25 11:53:23 +02:00
dir.c ovl: Use ovl mounter's fsuid and fsgid in ovl_link() 2023-01-18 11:41:43 +01:00
export.c ovl: drop WARN_ON() dentry is NULL in ovl_encode_fh() 2022-08-25 11:17:23 +02:00
file.c ovl: fix deadlock in splice write 2021-11-17 09:48:49 +01:00
inode.c
Kconfig
Makefile
namei.c new helper: lookup_positive_unlocked() 2023-09-23 10:59:40 +02:00
overlayfs.h ovl: fix warning in ovl_create_real() 2021-12-22 09:29:40 +01:00
ovl_entry.h ovl: check type and offset of struct vfsmount in ovl_entry 2023-08-30 16:27:09 +02:00
readdir.c
super.c ovl: skip overlayfs superblocks at global sync 2023-12-08 08:44:27 +01:00
util.c