提交 31d7d58d 编写于 作者: J Jens Axboe

xfs: add support for passing in write hints for buffered writes

Reviewed-by: NAndreas Dilger <adilger@dilger.ca>
Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 0127251c
...@@ -506,6 +506,7 @@ xfs_submit_ioend( ...@@ -506,6 +506,7 @@ xfs_submit_ioend(
return status; return status;
} }
ioend->io_bio->bi_write_hint = ioend->io_inode->i_write_hint;
submit_bio(ioend->io_bio); submit_bio(ioend->io_bio);
return 0; return 0;
} }
...@@ -565,6 +566,7 @@ xfs_chain_bio( ...@@ -565,6 +566,7 @@ xfs_chain_bio(
bio_chain(ioend->io_bio, new); bio_chain(ioend->io_bio, new);
bio_get(ioend->io_bio); /* for xfs_destroy_ioend */ bio_get(ioend->io_bio); /* for xfs_destroy_ioend */
ioend->io_bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc); ioend->io_bio->bi_opf = REQ_OP_WRITE | wbc_to_write_flags(wbc);
ioend->io_bio->bi_write_hint = ioend->io_inode->i_write_hint;
submit_bio(ioend->io_bio); submit_bio(ioend->io_bio);
ioend->io_bio = new; ioend->io_bio = new;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册