From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754068AbbDRUD0 (ORCPT ); Sat, 18 Apr 2015 16:03:26 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:27483 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbbDRUDY (ORCPT ); Sat, 18 Apr 2015 16:03:24 -0400 From: Jens Axboe To: , , CC: , , Subject: [PATCH v2] Support for write stream IDs Date: Sat, 18 Apr 2015 14:03:02 -0600 Message-ID: <1429387389-17029-1-git-send-email-axboe@fb.com> X-Mailer: git-send-email 2.4.0.rc2.1.g3d6bc9a 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.13.68,1.0.33,0.0.0000 definitions=2015-04-18_02:2015-04-17,2015-04-18,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, v2 of this posting. Changes since v1: - Rebased on top of current master. - Fix EINVAL -> -EINVAL typo. - Cleanup up BIO_STREAM_OFFSET definition. - Pack i_streamid and f_streamid better into struct file and struct inode. - Add a separate per-file hint, FADV_FILE_STREAMID. This only sets the write stream on the file, not the inode. FADV_STREAMID sets the hint both in the file and the inode. block/bio.c | 2 ++ block/blk-core.c | 3 +++ fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + fs/buffer.c | 4 ++-- fs/direct-io.c | 4 ++++ fs/ext4/page-io.c | 1 + fs/inode.c | 1 + fs/mpage.c | 1 + fs/open.c | 1 + fs/xfs/xfs_aops.c | 1 + include/linux/blk_types.h | 28 +++++++++++++++++++++++++++- include/linux/fs.h | 22 ++++++++++++++++++++++ include/uapi/linux/fadvise.h | 3 +++ mm/fadvise.c | 25 +++++++++++++++++++++++++ 15 files changed, 95 insertions(+), 3 deletions(-)