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
export.c
file.c
inode.c
Kconfig
Makefile
namei.c new helper: lookup_positive_unlocked() 2023-09-23 10:59:40 +02:00
overlayfs.h
ovl_entry.h
readdir.c
super.c ovl: skip overlayfs superblocks at global sync 2023-12-08 08:44:27 +01:00
util.c