Commit 5b8d453
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 7708786 commit 5b8d453
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2495 | 2495 | | |
2496 | 2496 | | |
2497 | 2497 | | |
2498 | | - | |
| 2498 | + | |
2499 | 2499 | | |
2500 | 2500 | | |
2501 | 2501 | | |
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | | - | |
| 2511 | + | |
| 2512 | + | |
2512 | 2513 | | |
2513 | 2514 | | |
2514 | 2515 | | |
| |||
2575 | 2576 | | |
2576 | 2577 | | |
2577 | 2578 | | |
2578 | | - | |
| 2579 | + | |
2579 | 2580 | | |
2580 | 2581 | | |
2581 | 2582 | | |
| |||
2588 | 2589 | | |
2589 | 2590 | | |
2590 | 2591 | | |
2591 | | - | |
| 2592 | + | |
| 2593 | + | |
2592 | 2594 | | |
2593 | 2595 | | |
2594 | 2596 | | |
| |||
0 commit comments