Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030939AbbEEUGE (ORCPT ); Tue, 5 May 2015 16:06:04 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:39942 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933041AbbEEUDM (ORCPT ); Tue, 5 May 2015 16:03:12 -0400 From: Jens Axboe To: , CC: , , Jens Axboe Subject: [PATCH 4/7] Add stream ID support for buffered mpage/__block_write_full_page() Date: Tue, 5 May 2015 14:02:58 -0600 Message-ID: <1430856181-19568-5-git-send-email-axboe@fb.com> X-Mailer: git-send-email 2.4.0.rc2.1.g3d6bc9a In-Reply-To: <1430856181-19568-1-git-send-email-axboe@fb.com> References: <1430856181-19568-1-git-send-email-axboe@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-05-05_06:2015-05-05,2015-05-05,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1467 Lines: 50 Pass on the inode stream ID to the bio allocation. Signed-off-by: Jens Axboe --- fs/buffer.c | 4 ++-- fs/mpage.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index c7a5602d01ee..5191523cec56 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1774,7 +1774,7 @@ 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(write_op, bh); + _submit_bh(write_op, bh, streamid_to_flags(inode_streamid(inode))); nr_underway++; } bh = next; @@ -1828,7 +1828,7 @@ recover: struct buffer_head *next = bh->b_this_page; if (buffer_async_write(bh)) { clear_buffer_dirty(bh); - submit_bh(write_op, bh); + _submit_bh(write_op, bh, streamid_to_flags(inode_streamid(inode))); nr_underway++; } bh = next; diff --git a/fs/mpage.c b/fs/mpage.c index 3e79220babac..fba13f4b981d 100644 --- a/fs/mpage.c +++ b/fs/mpage.c @@ -605,6 +605,7 @@ alloc_new: bio_get_nr_vecs(bdev), GFP_NOFS|__GFP_HIGH); if (bio == NULL) goto confused; + bio_set_streamid(bio, inode_streamid(inode)); } /* -- 2.4.0.rc2.1.g3d6bc9a -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/