diff options
author | Jinliang Zheng <alexjlzheng@gmail.com> | 2025-01-15 15:35:25 +0300 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2025-01-24 14:05:12 +0300 |
commit | 915175b49f65d9edeb81659e82cbb27b621dbc17 (patch) | |
tree | 0a311f641cd262cdd651c5672d78d685835590b1 /lib/mpi/mpi-sub-ui.c | |
parent | ee10f6fcdb961e810d7b16be1285319c15c78ef6 (diff) | |
download | linux-915175b49f65d9edeb81659e82cbb27b621dbc17.tar.xz |
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 <david@fromorbit.com>
Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions