diff options
| author | Jinliang Zheng <[email protected]> | 2025-01-15 12:35:25 +0000 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-01-24 11:05:12 +0000 |
| commit | 915175b49f65d9edeb81659e82cbb27b621dbc17 (patch) | |
| tree | 0a311f641cd262cdd651c5672d78d685835590b1 /fs/xfs/xfs_exchrange.c | |
| parent | xfs: fix buffer lookup vs release race (diff) | |
| download | kernel-915175b49f65d9edeb81659e82cbb27b621dbc17.tar.gz kernel-915175b49f65d9edeb81659e82cbb27b621dbc17.zip | |
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]>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
0 files changed, 0 insertions, 0 deletions
