diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 18:03:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 18:03:07 -0400 |
commit | d05d7f40791ccbb6e543cc5dd6a6aa08fc71d635 (patch) | |
tree | dc0039fe490a41a70de10d58fe8e6136db46463a /fs/reiserfs | |
parent | 75a442efb1ca613f8d1cc71a32c2c9b0aefae4a5 (diff) | |
parent | 17007f3994cdb4643355c73f54f0adad006cf59e (diff) |
Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-block
Pull core block updates from Jens Axboe:
- the big change is the cleanup from Mike Christie, cleaning up our
uses of command types and modified flags. This is what will throw
some merge conflicts
- regression fix for the above for btrfs, from Vincent
- following up to the above, better packing of struct request from
Christoph
- a 2038 fix for blktrace from Arnd
- a few trivial/spelling fixes from Bart Van Assche
- a front merge check fix from Damien, which could cause issues on
SMR drives
- Atari partition fix from Gabriel
- convert cfq to highres timers, since jiffies isn't granular enough
for some devices these days. From Jan and Jeff
- CFQ priority boost fix idle classes, from me
- cleanup series from Ming, improving our bio/bvec iteration
- a direct issue fix for blk-mq from Omar
- fix for plug merging not involving the IO scheduler, like we do for
other types of merges. From Tahsin
- expose DAX type internally and through sysfs. From Toshi and Yigal
* 'for-4.8/core' of git://git.kernel.dk/linux-block: (76 commits)
block: Fix front merge check
block: do not merge requests without consulting with io scheduler
block: Fix spelling in a source code comment
block: expose QUEUE_FLAG_DAX in sysfs
block: add QUEUE_FLAG_DAX for devices to advertise their DAX support
Btrfs: fix comparison in __btrfs_map_block()
block: atari: Return early for unsupported sector size
Doc: block: Fix a typo in queue-sysfs.txt
cfq-iosched: Charge at least 1 jiffie instead of 1 ns
cfq-iosched: Fix regression in bonnie++ rewrite performance
cfq-iosched: Convert slice_resid from u64 to s64
block: Convert fifo_time from ulong to u64
blktrace: avoid using timespec
block/blk-cgroup.c: Declare local symbols static
block/bio-integrity.c: Add #include "blk.h"
block/partition-generic.c: Remove a set-but-not-used variable
block: bio: kill BIO_MAX_SIZE
cfq-iosched: temporarily boost queue priority for idle classes
block: drbd: avoid to use BIO_MAX_SIZE
block: bio: remove BIO_MAX_SECTORS
...
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/inode.c | 4 | ||||
-rw-r--r-- | fs/reiserfs/journal.c | 14 | ||||
-rw-r--r-- | fs/reiserfs/stree.c | 4 | ||||
-rw-r--r-- | fs/reiserfs/super.c | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 825455d3e4ba..c2c59f9ff04b 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -2668,7 +2668,7 @@ static int reiserfs_write_full_page(struct page *page, | |||
2668 | do { | 2668 | do { |
2669 | struct buffer_head *next = bh->b_this_page; | 2669 | struct buffer_head *next = bh->b_this_page; |
2670 | if (buffer_async_write(bh)) { | 2670 | if (buffer_async_write(bh)) { |
2671 | submit_bh(WRITE, bh); | 2671 | submit_bh(REQ_OP_WRITE, 0, bh); |
2672 | nr++; | 2672 | nr++; |
2673 | } | 2673 | } |
2674 | put_bh(bh); | 2674 | put_bh(bh); |
@@ -2728,7 +2728,7 @@ fail: | |||
2728 | struct buffer_head *next = bh->b_this_page; | 2728 | struct buffer_head *next = bh->b_this_page; |
2729 | if (buffer_async_write(bh)) { | 2729 | if (buffer_async_write(bh)) { |
2730 | clear_buffer_dirty(bh); | 2730 | clear_buffer_dirty(bh); |
2731 | submit_bh(WRITE, bh); | 2731 | submit_bh(REQ_OP_WRITE, 0, bh); |
2732 | nr++; | 2732 | nr++; |
2733 | } | 2733 | } |
2734 | put_bh(bh); | 2734 | put_bh(bh); |
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 2ace90e981f0..bc2dde2423c2 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -652,7 +652,7 @@ static void submit_logged_buffer(struct buffer_head *bh) | |||
652 | BUG(); | 652 | BUG(); |
653 | if (!buffer_uptodate(bh)) | 653 | if (!buffer_uptodate(bh)) |
654 | BUG(); | 654 | BUG(); |
655 | submit_bh(WRITE, bh); | 655 | submit_bh(REQ_OP_WRITE, 0, bh); |
656 | } | 656 | } |
657 | 657 | ||
658 | static void submit_ordered_buffer(struct buffer_head *bh) | 658 | static void submit_ordered_buffer(struct buffer_head *bh) |
@@ -662,7 +662,7 @@ static void submit_ordered_buffer(struct buffer_head *bh) | |||
662 | clear_buffer_dirty(bh); | 662 | clear_buffer_dirty(bh); |
663 | if (!buffer_uptodate(bh)) | 663 | if (!buffer_uptodate(bh)) |
664 | BUG(); | 664 | BUG(); |
665 | submit_bh(WRITE, bh); | 665 | submit_bh(REQ_OP_WRITE, 0, bh); |
666 | } | 666 | } |
667 | 667 | ||
668 | #define CHUNK_SIZE 32 | 668 | #define CHUNK_SIZE 32 |
@@ -870,7 +870,7 @@ loop_next: | |||
870 | */ | 870 | */ |
871 | if (buffer_dirty(bh) && unlikely(bh->b_page->mapping == NULL)) { | 871 | if (buffer_dirty(bh) && unlikely(bh->b_page->mapping == NULL)) { |
872 | spin_unlock(lock); | 872 | spin_unlock(lock); |
873 | ll_rw_block(WRITE, 1, &bh); | 873 | ll_rw_block(REQ_OP_WRITE, 0, 1, &bh); |
874 | spin_lock(lock); | 874 | spin_lock(lock); |
875 | } | 875 | } |
876 | put_bh(bh); | 876 | put_bh(bh); |
@@ -1057,7 +1057,7 @@ static int flush_commit_list(struct super_block *s, | |||
1057 | if (tbh) { | 1057 | if (tbh) { |
1058 | if (buffer_dirty(tbh)) { | 1058 | if (buffer_dirty(tbh)) { |
1059 | depth = reiserfs_write_unlock_nested(s); | 1059 | depth = reiserfs_write_unlock_nested(s); |
1060 | ll_rw_block(WRITE, 1, &tbh); | 1060 | ll_rw_block(REQ_OP_WRITE, 0, 1, &tbh); |
1061 | reiserfs_write_lock_nested(s, depth); | 1061 | reiserfs_write_lock_nested(s, depth); |
1062 | } | 1062 | } |
1063 | put_bh(tbh) ; | 1063 | put_bh(tbh) ; |
@@ -2244,7 +2244,7 @@ abort_replay: | |||
2244 | } | 2244 | } |
2245 | } | 2245 | } |
2246 | /* read in the log blocks, memcpy to the corresponding real block */ | 2246 | /* read in the log blocks, memcpy to the corresponding real block */ |
2247 | ll_rw_block(READ, get_desc_trans_len(desc), log_blocks); | 2247 | ll_rw_block(REQ_OP_READ, 0, get_desc_trans_len(desc), log_blocks); |
2248 | for (i = 0; i < get_desc_trans_len(desc); i++) { | 2248 | for (i = 0; i < get_desc_trans_len(desc); i++) { |
2249 | 2249 | ||
2250 | wait_on_buffer(log_blocks[i]); | 2250 | wait_on_buffer(log_blocks[i]); |
@@ -2269,7 +2269,7 @@ abort_replay: | |||
2269 | /* flush out the real blocks */ | 2269 | /* flush out the real blocks */ |
2270 | for (i = 0; i < get_desc_trans_len(desc); i++) { | 2270 | for (i = 0; i < get_desc_trans_len(desc); i++) { |
2271 | set_buffer_dirty(real_blocks[i]); | 2271 | set_buffer_dirty(real_blocks[i]); |
2272 | write_dirty_buffer(real_blocks[i], WRITE); | 2272 | write_dirty_buffer(real_blocks[i], 0); |
2273 | } | 2273 | } |
2274 | for (i = 0; i < get_desc_trans_len(desc); i++) { | 2274 | for (i = 0; i < get_desc_trans_len(desc); i++) { |
2275 | wait_on_buffer(real_blocks[i]); | 2275 | wait_on_buffer(real_blocks[i]); |
@@ -2346,7 +2346,7 @@ static struct buffer_head *reiserfs_breada(struct block_device *dev, | |||
2346 | } else | 2346 | } else |
2347 | bhlist[j++] = bh; | 2347 | bhlist[j++] = bh; |
2348 | } | 2348 | } |
2349 | ll_rw_block(READ, j, bhlist); | 2349 | ll_rw_block(REQ_OP_READ, 0, j, bhlist); |
2350 | for (i = 1; i < j; i++) | 2350 | for (i = 1; i < j; i++) |
2351 | brelse(bhlist[i]); | 2351 | brelse(bhlist[i]); |
2352 | bh = bhlist[0]; | 2352 | bh = bhlist[0]; |
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index 5feacd689241..64b29b592d86 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c | |||
@@ -551,7 +551,7 @@ static int search_by_key_reada(struct super_block *s, | |||
551 | if (!buffer_uptodate(bh[j])) { | 551 | if (!buffer_uptodate(bh[j])) { |
552 | if (depth == -1) | 552 | if (depth == -1) |
553 | depth = reiserfs_write_unlock_nested(s); | 553 | depth = reiserfs_write_unlock_nested(s); |
554 | ll_rw_block(READA, 1, bh + j); | 554 | ll_rw_block(REQ_OP_READ, READA, 1, bh + j); |
555 | } | 555 | } |
556 | brelse(bh[j]); | 556 | brelse(bh[j]); |
557 | } | 557 | } |
@@ -660,7 +660,7 @@ int search_by_key(struct super_block *sb, const struct cpu_key *key, | |||
660 | if (!buffer_uptodate(bh) && depth == -1) | 660 | if (!buffer_uptodate(bh) && depth == -1) |
661 | depth = reiserfs_write_unlock_nested(sb); | 661 | depth = reiserfs_write_unlock_nested(sb); |
662 | 662 | ||
663 | ll_rw_block(READ, 1, &bh); | 663 | ll_rw_block(REQ_OP_READ, 0, 1, &bh); |
664 | wait_on_buffer(bh); | 664 | wait_on_buffer(bh); |
665 | 665 | ||
666 | if (depth != -1) | 666 | if (depth != -1) |
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index c72c16c5a60f..7a4a85a6821e 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -1666,7 +1666,7 @@ static int read_super_block(struct super_block *s, int offset) | |||
1666 | /* after journal replay, reread all bitmap and super blocks */ | 1666 | /* after journal replay, reread all bitmap and super blocks */ |
1667 | static int reread_meta_blocks(struct super_block *s) | 1667 | static int reread_meta_blocks(struct super_block *s) |
1668 | { | 1668 | { |
1669 | ll_rw_block(READ, 1, &SB_BUFFER_WITH_SB(s)); | 1669 | ll_rw_block(REQ_OP_READ, 0, 1, &SB_BUFFER_WITH_SB(s)); |
1670 | wait_on_buffer(SB_BUFFER_WITH_SB(s)); | 1670 | wait_on_buffer(SB_BUFFER_WITH_SB(s)); |
1671 | if (!buffer_uptodate(SB_BUFFER_WITH_SB(s))) { | 1671 | if (!buffer_uptodate(SB_BUFFER_WITH_SB(s))) { |
1672 | reiserfs_warning(s, "reiserfs-2504", "error reading the super"); | 1672 | reiserfs_warning(s, "reiserfs-2504", "error reading the super"); |