Skip to content

Commit ec1b826

Browse files
Christoph Hellwigdchinner
authored andcommitted
fs: make sb_init_dio_done_wq available outside of direct-io.c
We want to use the per-sb completion workqueue from the new iomap direct I/O code. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Jens Axboe <axboe@fb.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
1 parent 6552321 commit ec1b826

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

fs/direct-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio)
554554
* filesystems that don't need it and also allows us to create the workqueue
555555
* late enough so the we can include s_id in the name of the workqueue.
556556
*/
557-
static int sb_init_dio_done_wq(struct super_block *sb)
557+
int sb_init_dio_done_wq(struct super_block *sb)
558558
{
559559
struct workqueue_struct *old;
560560
struct workqueue_struct *wq = alloc_workqueue("dio/%s",

fs/internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,6 @@ typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
184184
loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
185185
unsigned flags, struct iomap_ops *ops, void *data,
186186
iomap_actor_t actor);
187+
188+
/* direct-io.c: */
189+
int sb_init_dio_done_wq(struct super_block *sb);

0 commit comments

Comments
 (0)