[PATCH v2] Support for write stream IDs

Jens Axboe
2015-04-18T20:03:26Z

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(-)