Commit fbd2a05
committed
NFSv4.2: Rework scratch handling for READ_PLUS
Instead of using a tiny, static scratch buffer, we should use a kmalloc()-ed
buffer that is allocated when checking for read plus usage. This lets us
use the buffer before decoding any part of the READ_PLUS operation
instead of setting it right before segment decoding, meaning it should
be a little more robust.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>1 parent e025f0a commit fbd2a05
3 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
1126 | 1125 | | |
1127 | 1126 | | |
1128 | 1127 | | |
| |||
1143 | 1142 | | |
1144 | 1143 | | |
1145 | 1144 | | |
1146 | | - | |
1147 | 1145 | | |
1148 | 1146 | | |
1149 | 1147 | | |
| |||
1348 | 1346 | | |
1349 | 1347 | | |
1350 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5439 | 5439 | | |
5440 | 5440 | | |
5441 | 5441 | | |
| 5442 | + | |
| 5443 | + | |
5442 | 5444 | | |
5443 | 5445 | | |
5444 | 5446 | | |
| |||
5452 | 5454 | | |
5453 | 5455 | | |
5454 | 5456 | | |
5455 | | - | |
| 5457 | + | |
5456 | 5458 | | |
5457 | 5459 | | |
5458 | 5460 | | |
5459 | | - | |
| 5461 | + | |
5460 | 5462 | | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
5461 | 5467 | | |
5462 | 5468 | | |
5463 | | - | |
| 5469 | + | |
5464 | 5470 | | |
5465 | 5471 | | |
| 5472 | + | |
5466 | 5473 | | |
5467 | 5474 | | |
5468 | 5475 | | |
| |||
5472 | 5479 | | |
5473 | 5480 | | |
5474 | 5481 | | |
5475 | | - | |
5476 | | - | |
| 5482 | + | |
| 5483 | + | |
5477 | 5484 | | |
5478 | 5485 | | |
5479 | 5486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| |||
0 commit comments