Skip to content
Commit d3ecfcdf authored by Liu Bo's avatar Liu Bo Committed by Chris Mason
Browse files

Btrfs: fix EIO on reading file after ioctl clone works on it



For inline data extent, we need to make its length aligned, otherwise,
we can get a phantom extent map which confuses readpages() to return -EIO.

This can be detected by xfstests/btrfs/035.

Reported-by: default avatarDavid Disseldorp <ddiss@suse.de>
Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent cfd4a535
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment