Commit d3ecfcd
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>1 parent cfd4a53 commit d3ecfcd
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3142 | 3142 | | |
3143 | 3143 | | |
3144 | 3144 | | |
| 3145 | + | |
| 3146 | + | |
3145 | 3147 | | |
3146 | 3148 | | |
3147 | 3149 | | |
| |||
3158 | 3160 | | |
3159 | 3161 | | |
3160 | 3162 | | |
| 3163 | + | |
| 3164 | + | |
3161 | 3165 | | |
3162 | 3166 | | |
3163 | | - | |
| 3167 | + | |
3164 | 3168 | | |
3165 | 3169 | | |
3166 | 3170 | | |
| |||
0 commit comments