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>
This commit is contained in:
parent
cef4cbff06
commit
c11faf3259
|
@ -476,7 +476,7 @@ static int ovl_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
|||
u64 start, u64 len)
|
||||
{
|
||||
int err;
|
||||
struct inode *realinode = ovl_inode_real(inode);
|
||||
struct inode *realinode = ovl_inode_realdata(inode);
|
||||
const struct cred *old_cred;
|
||||
|
||||
if (!realinode->i_op->fiemap)
|
||||
|
|
Loading…
Reference in New Issue