Skip to content

Commit a8bb258

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
xfs: remove the xfs_iext_peek_prev_extent call in xfs_bmapi_allocate
Both callers of xfs_bmapi_allocate already initialize bma->prev, don't redo that in xfs_bmapi_allocate. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
1 parent 2a9b99d commit a8bb258

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4187,11 +4187,6 @@ xfs_bmapi_allocate(
41874187
ASSERT(bma->length > 0);
41884188
ASSERT(bma->length <= XFS_MAX_BMBT_EXTLEN);
41894189

4190-
if (bma->wasdel) {
4191-
if (!xfs_iext_peek_prev_extent(ifp, &bma->icur, &bma->prev))
4192-
bma->prev.br_startoff = NULLFILEOFF;
4193-
}
4194-
41954190
if (bma->flags & XFS_BMAPI_CONTIG)
41964191
bma->minlen = bma->length;
41974192
else

0 commit comments

Comments
 (0)