Commit 2a9b99d
xfs: pass the actual offset and len to allocate to xfs_bmapi_allocate
xfs_bmapi_allocate currently overwrites offset and len when converting
delayed allocations, and duplicates the length cap done for non-delalloc
allocations. Move all that logic into the callers to avoid duplication
and to make the calling conventions more obvious.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>1 parent 9d06960 commit 2a9b99d
1 file changed
+18
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4185 | 4185 | | |
4186 | 4186 | | |
4187 | 4187 | | |
| 4188 | + | |
4188 | 4189 | | |
4189 | | - | |
4190 | | - | |
4191 | | - | |
4192 | | - | |
4193 | 4190 | | |
4194 | | - | |
4195 | | - | |
4196 | 4191 | | |
4197 | 4192 | | |
4198 | | - | |
4199 | | - | |
4200 | | - | |
4201 | | - | |
4202 | | - | |
4203 | 4193 | | |
4204 | 4194 | | |
4205 | 4195 | | |
| |||
4533 | 4523 | | |
4534 | 4524 | | |
4535 | 4525 | | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
4536 | 4535 | | |
4537 | 4536 | | |
4538 | 4537 | | |
| |||
4686 | 4685 | | |
4687 | 4686 | | |
4688 | 4687 | | |
4689 | | - | |
4690 | | - | |
4691 | | - | |
4692 | 4688 | | |
4693 | 4689 | | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
4694 | 4698 | | |
4695 | 4699 | | |
4696 | 4700 | | |
| |||
0 commit comments