Message ID | 20241026180116.10536-1-alexjlzheng@tencent.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | xfs: fix the judgment of whether the file already has extents | expand |
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 36dd08d13293..94e7aeed9e95 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -3536,7 +3536,7 @@ xfs_bmap_btalloc_at_eof( * or it's the first allocation in a file, just try for a stripe aligned * allocation. */ - if (ap->offset) { + if (ap->prev.br_startoff != NULLFILEOFF) { xfs_extlen_t nextminlen = 0; /*