ovl: respect FIEMAP_FLAG_SYNC flag
authorAmir Goldstein <amir73il@gmail.com>
Mon, 27 Aug 2018 12:55:59 +0000 (15:55 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 30 Aug 2018 15:08:35 +0000 (17:08 +0200)
commit80d34810815b1d708e3e59901a2afcdbd90c2a6f
tree8d20ff41f27c2b86666654cb8cb1b0721ab794fe
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
ovl: respect FIEMAP_FLAG_SYNC flag

Stacked overlayfs fiemap operation broke xfstests that test delayed
allocation (with "_test_generic_punch -d"), because ovl_fiemap()
failed to write dirty pages when requested.

Fixes: 9e142c4102db ("ovl: add ovl_fiemap()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c