Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 375ec69d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: remove delwri buffer handling from xfs_buf_iorequest



We cannot ever reach xfs_buf_iorequest for a buffer with XBF_DELWRI set,
given that all write handlers make sure that the buffer is remove from
the delwri queue before, and we never do reads with the XBF_DELWRI flag
set (which the code would not handle correctly anyway).

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
parent 7271d243
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -1275,15 +1275,10 @@ xfs_buf_iorequest(
{
{
	trace_xfs_buf_iorequest(bp, _RET_IP_);
	trace_xfs_buf_iorequest(bp, _RET_IP_);


	if (bp->b_flags & XBF_DELWRI) {
	ASSERT(!(bp->b_flags & XBF_DELWRI));
		xfs_buf_delwri_queue(bp, 1);
		return 0;
	}


	if (bp->b_flags & XBF_WRITE) {
	if (bp->b_flags & XBF_WRITE)
		xfs_buf_wait_unpin(bp);
		xfs_buf_wait_unpin(bp);
	}

	xfs_buf_hold(bp);
	xfs_buf_hold(bp);


	/* Set the count to 1 initially, this will stop an I/O
	/* Set the count to 1 initially, this will stop an I/O