ovl: fix incorrect extent info in metacopy case
authorChengguang Xu <cgxu519@mykernel.net>
Wed, 24 Jun 2020 10:20:11 +0000 (18:20 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Nov 2020 10:31:56 +0000 (11:31 +0100)
commitc11faf32599fee59f33896c8d59f9b3c17ca76fc
treed9f21d20ba852e3924741a11b31845b15c60e8f8
parentcef4cbff06fbc3be54d6d79ee139edecc2ee8598
ovl: fix incorrect extent info in metacopy case

In metacopy case, we should use ovl_inode_realdata() instead of
ovl_inode_real() to get real inode which has data, so that
we can get correct information of extentes in ->fiemap operation.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c