From: Jens Axboe Date: Tue, 27 Jun 2017 17:51:28 +0000 (-0600) Subject: btrfs: add support for passing in write hints for buffered writes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6959b9350c6135b260d7b561153d9ad6c5d49ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git btrfs: add support for passing in write hints for buffered writes Reviewed-by: Andreas Dilger Signed-off-by: Chris Mason Reviewed-by: Martin K. Petersen Signed-off-by: Jens Axboe --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 19eedf2e630b..d1cd60140817 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2830,6 +2830,7 @@ static int submit_extent_page(int op, int op_flags, struct extent_io_tree *tree, bio_add_page(bio, page, page_size, offset); bio->bi_end_io = end_io_func; bio->bi_private = tree; + bio->bi_write_hint = page->mapping->host->i_write_hint; bio_set_op_attrs(bio, op, op_flags); if (wbc) { wbc_init_bio(wbc, bio);