mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
committed by
Chandan Babu R
parent
2a9b99d45b
commit
a8bb258f70
@@ -4187,11 +4187,6 @@ xfs_bmapi_allocate(
|
||||
ASSERT(bma->length > 0);
|
||||
ASSERT(bma->length <= XFS_MAX_BMBT_EXTLEN);
|
||||
|
||||
if (bma->wasdel) {
|
||||
if (!xfs_iext_peek_prev_extent(ifp, &bma->icur, &bma->prev))
|
||||
bma->prev.br_startoff = NULLFILEOFF;
|
||||
}
|
||||
|
||||
if (bma->flags & XFS_BMAPI_CONTIG)
|
||||
bma->minlen = bma->length;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user