Return-Path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:54097 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932475AbcCDQMl (ORCPT ); Fri, 4 Mar 2016 11:12:41 -0500 From: Jens Axboe To: , CC: , , , Jens Axboe Subject: [PATCH 08/11] Add stream ID support for buffered mpage/__block_write_full_page() Date: Fri, 4 Mar 2016 09:10:50 -0700 Message-ID: <1457107853-8689-9-git-send-email-axboe@fb.com> In-Reply-To: <1457107853-8689-1-git-send-email-axboe@fb.com> References: <1457107853-8689-1-git-send-email-axboe@fb.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Pass on the inode stream ID to the bio allocation. Signed-off-by: Jens Axboe --- fs/buffer.c | 8 ++++++-- fs/mpage.c | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index e1632abb4ca9..b7b5cbae7482 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1788,7 +1788,9 @@ static int __block_write_full_page(struct inode *inode, struct page *page, do { struct buffer_head *next = bh->b_this_page; if (buffer_async_write(bh)) { - submit_bh_wbc(write_op, bh, 0, wbc); + submit_bh_wbc(write_op, bh, + streamid_to_flags(inode_streamid(inode)), + wbc); nr_underway++; } bh = next; @@ -1842,7 +1844,9 @@ recover: struct buffer_head *next = bh->b_this_page; if (buffer_async_write(bh)) { clear_buffer_dirty(bh); - submit_bh_wbc(write_op, bh, 0, wbc); + submit_bh_wbc(write_op, bh, + streamid_to_flags(inode_streamid(inode)), + wbc); nr_underway++; } bh = next; diff --git a/fs/mpage.c b/fs/mpage.c index 1480d3a18037..8b093ab150df 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -281,6 +281,7 @@ alloc_new: min_t(int, nr_pages, BIO_MAX_PAGES), gfp); if (bio == NULL) goto confused; + bio_set_streamid(bio, inode_streamid(inode)); } length = first_hole << blkbits; -- 2.4.1.168.g1ea28e1