Skip to content
Commit 915175b4 authored by Jinliang Zheng's avatar Jinliang Zheng Committed by Carlos Maiolino
Browse files

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: default avatarDave Chinner <david@fromorbit.com>
Signed-off-by: default avatarJinliang Zheng <alexjlzheng@tencent.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent ee10f6fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment