Skip to content

Commit 7adb8f1

Browse files
Brian FosterDarrick J. Wong
authored andcommitted
xfs: open code ioend needs workqueue helper
Open code xfs_ioend_needs_workqueue() into the only remaining caller. Signed-off-by: Brian Foster <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 7cd3099 commit 7adb8f1

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

fs/xfs/xfs_aops.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ xfs_end_io(
206206
}
207207
}
208208

209-
static inline bool xfs_ioend_needs_workqueue(struct iomap_ioend *ioend)
210-
{
211-
return xfs_ioend_is_append(ioend) ||
212-
ioend->io_type == IOMAP_UNWRITTEN ||
213-
(ioend->io_flags & IOMAP_F_SHARED);
214-
}
215-
216209
STATIC void
217210
xfs_end_bio(
218211
struct bio *bio)
@@ -472,7 +465,9 @@ xfs_prepare_ioend(
472465

473466
memalloc_nofs_restore(nofs_flag);
474467

475-
if (xfs_ioend_needs_workqueue(ioend))
468+
/* send ioends that might require a transaction to the completion wq */
469+
if (xfs_ioend_is_append(ioend) || ioend->io_type == IOMAP_UNWRITTEN ||
470+
(ioend->io_flags & IOMAP_F_SHARED))
476471
ioend->io_bio->bi_end_io = xfs_end_bio;
477472
return status;
478473
}

0 commit comments

Comments
 (0)