commit | d3ecfcdf9108c833e4e501bfa02ecf673a0ace59 | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Fri May 09 10:01:02 2014 +0800 |
committer | Chris Mason <clm@fb.com> | Tue May 20 10:17:48 2014 -0700 |
tree | 83733f1f456047ba4f435f2fa06182707e4fe320 | |
parent | cfd4a535b68faf651b238586011f5bae128391c4 [diff] |
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: David Disseldorp <ddiss@suse.de> Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Chris Mason <clm@fb.com>