[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe Acked-by: Chris Mason --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 43af5a61ad25..f0d46e2622ae 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page->mapping->host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8bb013672aee..93aac5436e60 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8180,6 +8180,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(>pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio->logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio->bi_end_io = btrfs_endio_direct_write; -- 2.4.0.rc2.1.g3d6bc9a -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe ax...@fb.com Acked-by: Chris Mason c...@fb.com --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 43af5a61ad25..f0d46e2622ae 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page-mapping-host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8bb013672aee..93aac5436e60 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8180,6 +8180,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(dip-pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio-logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio-bi_end_io = btrfs_endio_direct_write; -- 2.4.0.rc2.1.g3d6bc9a -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe Acked-by: Chris Mason --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d688cfe5d496..2845fae054b6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page->mapping->host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 43192e10cc43..8ff7527e8d05 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8046,6 +8046,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(>pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio->logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio->bi_end_io = btrfs_endio_direct_write; -- 2.4.0.rc2.1.g3d6bc9a -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe ax...@fb.com Acked-by: Chris Mason c...@fb.com --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d688cfe5d496..2845fae054b6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page-mapping-host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 43192e10cc43..8ff7527e8d05 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8046,6 +8046,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(dip-pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio-logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio-bi_end_io = btrfs_endio_direct_write; -- 2.4.0.rc2.1.g3d6bc9a -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 5/7] btrfs: add support for write stream IDs
On Wed, Mar 25, 2015 at 11:07 AM, Jens Axboe wrote: Both buffered and O_DIRECT. Looks good, thanks Jens. Acked-by: Chris Mason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d688cfe5d496..2845fae054b6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page->mapping->host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d2e732d7af52..804fd6768109 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8046,6 +8046,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(>pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio->logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio->bi_end_io = btrfs_endio_direct_write; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 5/7] btrfs: add support for write stream IDs
On Wed, Mar 25, 2015 at 11:07 AM, Jens Axboe ax...@fb.com wrote: Both buffered and O_DIRECT. Looks good, thanks Jens. Acked-by: Chris Mason c...@fb.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 5/7] btrfs: add support for write stream IDs
Both buffered and O_DIRECT. Signed-off-by: Jens Axboe ax...@fb.com --- fs/btrfs/extent_io.c | 1 + fs/btrfs/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d688cfe5d496..2845fae054b6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2838,6 +2838,7 @@ static int submit_extent_page(int rw, 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_set_streamid(bio, inode_streamid(page-mapping-host)); if (bio_ret) *bio_ret = bio; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d2e732d7af52..804fd6768109 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8046,6 +8046,7 @@ static void btrfs_submit_direct(int rw, struct bio *dio_bio, atomic_set(dip-pending_bios, 0); btrfs_bio = btrfs_io_bio(io_bio); btrfs_bio-logical = file_offset; + bio_set_streamid(io_bio, inode_streamid(inode)); if (write) { io_bio-bi_end_io = btrfs_endio_direct_write; -- 1.9.1 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/