Commit 915175b
xfs: fix the entry condition of exact EOF block allocation optimization
When we call create(), lseek() and write() sequentially, offset != 0
cannot be used as a judgment condition for whether the file already
has extents.
Furthermore, when xfs_bmap_adjacent() has not given a better blkno,
it is not necessary to use exact EOF block allocation.
Suggested-by: Dave Chinner <[email protected]>
Signed-off-by: Jinliang Zheng <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>1 parent ee10f6f commit 915175b
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3563 | 3563 | | |
3564 | 3564 | | |
3565 | 3565 | | |
3566 | | - | |
3567 | | - | |
3568 | | - | |
3569 | | - | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
3570 | 3570 | | |
3571 | | - | |
| 3571 | + | |
3572 | 3572 | | |
3573 | 3573 | | |
3574 | 3574 | | |
| |||
3736 | 3736 | | |
3737 | 3737 | | |
3738 | 3738 | | |
3739 | | - | |
| 3739 | + | |
| 3740 | + | |
3740 | 3741 | | |
3741 | 3742 | | |
3742 | 3743 | | |
| |||
0 commit comments