diff options
author | David Sterba <dsterba@suse.com> | 2016-05-25 16:51:03 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-25 16:51:03 -0400 |
commit | 42f31734eb7658fd01fb186d56312be869450a42 (patch) | |
tree | b2fb549b9549bead4d2837c81760cf87fa50ad43 /fs/btrfs/disk-io.c | |
parent | e73440868fde7cce4a93583a4fa2db9a8938a7ed (diff) | |
parent | 0132761017e012ab4dc8584d679503f2ba26ca86 (diff) |
Merge branch 'cleanups-4.7' into for-chris-4.7-20160525
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 91d123938cef..6628fca9f4ed 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -384,7 +384,7 @@ static int verify_parent_transid(struct extent_io_tree *io_tree, | |||
384 | /* | 384 | /* |
385 | * Things reading via commit roots that don't have normal protection, | 385 | * Things reading via commit roots that don't have normal protection, |
386 | * like send, can have a really old block in cache that may point at a | 386 | * like send, can have a really old block in cache that may point at a |
387 | * block that has been free'd and re-allocated. So don't clear uptodate | 387 | * block that has been freed and re-allocated. So don't clear uptodate |
388 | * if we find an eb that is under IO (dirty/writeback) because we could | 388 | * if we find an eb that is under IO (dirty/writeback) because we could |
389 | * end up reading in the stale data and then writing it back out and | 389 | * end up reading in the stale data and then writing it back out and |
390 | * making everybody very sad. | 390 | * making everybody very sad. |
@@ -418,7 +418,7 @@ static int btrfs_check_super_csum(char *raw_disk_sb) | |||
418 | /* | 418 | /* |
419 | * The super_block structure does not span the whole | 419 | * The super_block structure does not span the whole |
420 | * BTRFS_SUPER_INFO_SIZE range, we expect that the unused space | 420 | * BTRFS_SUPER_INFO_SIZE range, we expect that the unused space |
421 | * is filled with zeros and is included in the checkum. | 421 | * is filled with zeros and is included in the checksum. |
422 | */ | 422 | */ |
423 | crc = btrfs_csum_data(raw_disk_sb + BTRFS_CSUM_SIZE, | 423 | crc = btrfs_csum_data(raw_disk_sb + BTRFS_CSUM_SIZE, |
424 | crc, BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE); | 424 | crc, BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE); |
@@ -600,7 +600,7 @@ static noinline int check_leaf(struct btrfs_root *root, | |||
600 | 600 | ||
601 | /* | 601 | /* |
602 | * Check to make sure that we don't point outside of the leaf, | 602 | * Check to make sure that we don't point outside of the leaf, |
603 | * just incase all the items are consistent to eachother, but | 603 | * just in case all the items are consistent to each other, but |
604 | * all point outside of the leaf. | 604 | * all point outside of the leaf. |
605 | */ | 605 | */ |
606 | if (btrfs_item_end_nr(leaf, slot) > | 606 | if (btrfs_item_end_nr(leaf, slot) > |
@@ -3022,7 +3022,7 @@ retry_root_backup: | |||
3022 | } | 3022 | } |
3023 | 3023 | ||
3024 | /* | 3024 | /* |
3025 | * Mount does not set all options immediatelly, we can do it now and do | 3025 | * Mount does not set all options immediately, we can do it now and do |
3026 | * not have to wait for transaction commit | 3026 | * not have to wait for transaction commit |
3027 | */ | 3027 | */ |
3028 | btrfs_apply_pending_changes(fs_info); | 3028 | btrfs_apply_pending_changes(fs_info); |
@@ -3255,7 +3255,7 @@ static void btrfs_end_buffer_write_sync(struct buffer_head *bh, int uptodate) | |||
3255 | btrfs_warn_rl_in_rcu(device->dev_root->fs_info, | 3255 | btrfs_warn_rl_in_rcu(device->dev_root->fs_info, |
3256 | "lost page write due to IO error on %s", | 3256 | "lost page write due to IO error on %s", |
3257 | rcu_str_deref(device->name)); | 3257 | rcu_str_deref(device->name)); |
3258 | /* note, we dont' set_buffer_write_io_error because we have | 3258 | /* note, we don't set_buffer_write_io_error because we have |
3259 | * our own ways of dealing with the IO errors | 3259 | * our own ways of dealing with the IO errors |
3260 | */ | 3260 | */ |
3261 | clear_buffer_uptodate(bh); | 3261 | clear_buffer_uptodate(bh); |
@@ -4367,7 +4367,7 @@ static int btrfs_destroy_marked_extents(struct btrfs_root *root, | |||
4367 | if (ret) | 4367 | if (ret) |
4368 | break; | 4368 | break; |
4369 | 4369 | ||
4370 | clear_extent_bits(dirty_pages, start, end, mark, GFP_NOFS); | 4370 | clear_extent_bits(dirty_pages, start, end, mark); |
4371 | while (start <= end) { | 4371 | while (start <= end) { |
4372 | eb = btrfs_find_tree_block(root->fs_info, start); | 4372 | eb = btrfs_find_tree_block(root->fs_info, start); |
4373 | start += root->nodesize; | 4373 | start += root->nodesize; |
@@ -4402,7 +4402,7 @@ again: | |||
4402 | if (ret) | 4402 | if (ret) |
4403 | break; | 4403 | break; |
4404 | 4404 | ||
4405 | clear_extent_dirty(unpin, start, end, GFP_NOFS); | 4405 | clear_extent_dirty(unpin, start, end); |
4406 | btrfs_error_unpin_extent_range(root, start, end); | 4406 | btrfs_error_unpin_extent_range(root, start, end); |
4407 | cond_resched(); | 4407 | cond_resched(); |
4408 | } | 4408 | } |