Commit 30fd029
btrfs: allow read-/writing an extent to handle arbitrarily sized bios
Fix bugs in end_bio_extent_{read,write}page(), upon reading or writing
biovec that has length of multiple pages. The condition "bvec.bv_len
!= PAGE_CACHE_SIZE" would not be always valid any more, because now
biovec is able to handle arbitrary size of bio. Without this patch,
read/write IO stalls with the following log:
BTRFS error (device sdb1): partial page write in btrfs with offset 0 and length 8192
BTRFS critical (device sdb1): bad ordered accounting left 0 size 4096
Signed-off-by: Ming Lin <[email protected]>
Signed-off-by: Dongsu Park <[email protected]>1 parent 87c3574 commit 30fd029
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2468 | 2468 | | |
2469 | 2469 | | |
2470 | 2470 | | |
2471 | | - | |
| 2471 | + | |
2472 | 2472 | | |
2473 | 2473 | | |
2474 | 2474 | | |
| |||
2481 | 2481 | | |
2482 | 2482 | | |
2483 | 2483 | | |
2484 | | - | |
| 2484 | + | |
| 2485 | + | |
2485 | 2486 | | |
2486 | 2487 | | |
2487 | 2488 | | |
| |||
2548 | 2549 | | |
2549 | 2550 | | |
2550 | 2551 | | |
2551 | | - | |
| 2552 | + | |
2552 | 2553 | | |
2553 | 2554 | | |
2554 | 2555 | | |
| |||
2561 | 2562 | | |
2562 | 2563 | | |
2563 | 2564 | | |
2564 | | - | |
| 2565 | + | |
| 2566 | + | |
2565 | 2567 | | |
2566 | 2568 | | |
2567 | 2569 | | |
| |||
0 commit comments