diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2018-11-28 06:05:13 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-12-17 08:51:50 -0500 |
commit | 52042d8e82ff50d40e76a275ac0b97aa663328b0 (patch) | |
tree | 58ba6c57c648c97b824ec2618f1e6964de3ee55b /fs/btrfs/extent-tree.c | |
parent | 1690dd41e0cb1dade80850ed8a3eb0121b96d22f (diff) |
btrfs: Fix typos in comments and strings
The typos accumulate over time so once in a while time they get fixed in
a large patch.
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 8a9ce33dfdbc..b15afeae16df 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1055,7 +1055,7 @@ out_free: | |||
1055 | 1055 | ||
1056 | /* | 1056 | /* |
1057 | * is_data == BTRFS_REF_TYPE_BLOCK, tree block type is required, | 1057 | * is_data == BTRFS_REF_TYPE_BLOCK, tree block type is required, |
1058 | * is_data == BTRFS_REF_TYPE_DATA, data type is requried, | 1058 | * is_data == BTRFS_REF_TYPE_DATA, data type is requiried, |
1059 | * is_data == BTRFS_REF_TYPE_ANY, either type is OK. | 1059 | * is_data == BTRFS_REF_TYPE_ANY, either type is OK. |
1060 | */ | 1060 | */ |
1061 | int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, | 1061 | int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, |
@@ -3705,7 +3705,7 @@ again: | |||
3705 | } | 3705 | } |
3706 | } | 3706 | } |
3707 | 3707 | ||
3708 | /* if its not on the io list, we need to put the block group */ | 3708 | /* if it's not on the io list, we need to put the block group */ |
3709 | if (should_put) | 3709 | if (should_put) |
3710 | btrfs_put_block_group(cache); | 3710 | btrfs_put_block_group(cache); |
3711 | if (drop_reserve) | 3711 | if (drop_reserve) |
@@ -4675,7 +4675,7 @@ static int can_overcommit(struct btrfs_fs_info *fs_info, | |||
4675 | 4675 | ||
4676 | /* | 4676 | /* |
4677 | * If we have dup, raid1 or raid10 then only half of the free | 4677 | * If we have dup, raid1 or raid10 then only half of the free |
4678 | * space is actually useable. For raid56, the space info used | 4678 | * space is actually usable. For raid56, the space info used |
4679 | * doesn't include the parity drive, so we don't have to | 4679 | * doesn't include the parity drive, so we don't have to |
4680 | * change the math | 4680 | * change the math |
4681 | */ | 4681 | */ |
@@ -5302,7 +5302,7 @@ static int __reserve_metadata_bytes(struct btrfs_fs_info *fs_info, | |||
5302 | * @orig_bytes - the number of bytes we want | 5302 | * @orig_bytes - the number of bytes we want |
5303 | * @flush - whether or not we can flush to make our reservation | 5303 | * @flush - whether or not we can flush to make our reservation |
5304 | * | 5304 | * |
5305 | * This will reserve orgi_bytes number of bytes from the space info associated | 5305 | * This will reserve orig_bytes number of bytes from the space info associated |
5306 | * with the block_rsv. If there is not enough space it will make an attempt to | 5306 | * with the block_rsv. If there is not enough space it will make an attempt to |
5307 | * flush out space to make room. It will do this by flushing delalloc if | 5307 | * flush out space to make room. It will do this by flushing delalloc if |
5308 | * possible or committing the transaction. If flush is 0 then no attempts to | 5308 | * possible or committing the transaction. If flush is 0 then no attempts to |
@@ -5771,11 +5771,11 @@ int btrfs_block_rsv_refill(struct btrfs_root *root, | |||
5771 | /** | 5771 | /** |
5772 | * btrfs_inode_rsv_refill - refill the inode block rsv. | 5772 | * btrfs_inode_rsv_refill - refill the inode block rsv. |
5773 | * @inode - the inode we are refilling. | 5773 | * @inode - the inode we are refilling. |
5774 | * @flush - the flusing restriction. | 5774 | * @flush - the flushing restriction. |
5775 | * | 5775 | * |
5776 | * Essentially the same as btrfs_block_rsv_refill, except it uses the | 5776 | * Essentially the same as btrfs_block_rsv_refill, except it uses the |
5777 | * block_rsv->size as the minimum size. We'll either refill the missing amount | 5777 | * block_rsv->size as the minimum size. We'll either refill the missing amount |
5778 | * or return if we already have enough space. This will also handle the resreve | 5778 | * or return if we already have enough space. This will also handle the reserve |
5779 | * tracepoint for the reserved amount. | 5779 | * tracepoint for the reserved amount. |
5780 | */ | 5780 | */ |
5781 | static int btrfs_inode_rsv_refill(struct btrfs_inode *inode, | 5781 | static int btrfs_inode_rsv_refill(struct btrfs_inode *inode, |
@@ -8500,7 +8500,7 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
8500 | buf->log_index = root->log_transid % 2; | 8500 | buf->log_index = root->log_transid % 2; |
8501 | /* | 8501 | /* |
8502 | * we allow two log transactions at a time, use different | 8502 | * we allow two log transactions at a time, use different |
8503 | * EXENT bit to differentiate dirty pages. | 8503 | * EXTENT bit to differentiate dirty pages. |
8504 | */ | 8504 | */ |
8505 | if (buf->log_index == 0) | 8505 | if (buf->log_index == 0) |
8506 | set_extent_dirty(&root->dirty_log_pages, buf->start, | 8506 | set_extent_dirty(&root->dirty_log_pages, buf->start, |
@@ -9762,7 +9762,7 @@ void btrfs_dec_block_group_ro(struct btrfs_block_group_cache *cache) | |||
9762 | } | 9762 | } |
9763 | 9763 | ||
9764 | /* | 9764 | /* |
9765 | * checks to see if its even possible to relocate this block group. | 9765 | * Checks to see if it's even possible to relocate this block group. |
9766 | * | 9766 | * |
9767 | * @return - -1 if it's not a good idea to relocate this block group, 0 if its | 9767 | * @return - -1 if it's not a good idea to relocate this block group, 0 if its |
9768 | * ok to go ahead and try. | 9768 | * ok to go ahead and try. |
@@ -10390,7 +10390,7 @@ int btrfs_read_block_groups(struct btrfs_fs_info *info) | |||
10390 | * check for two cases, either we are full, and therefore | 10390 | * check for two cases, either we are full, and therefore |
10391 | * don't need to bother with the caching work since we won't | 10391 | * don't need to bother with the caching work since we won't |
10392 | * find any space, or we are empty, and we can just add all | 10392 | * find any space, or we are empty, and we can just add all |
10393 | * the space in and be done with it. This saves us _alot_ of | 10393 | * the space in and be done with it. This saves us _a_lot_ of |
10394 | * time, particularly in the full case. | 10394 | * time, particularly in the full case. |
10395 | */ | 10395 | */ |
10396 | if (found_key.offset == btrfs_block_group_used(&cache->item)) { | 10396 | if (found_key.offset == btrfs_block_group_used(&cache->item)) { |
@@ -10660,7 +10660,7 @@ int btrfs_remove_block_group(struct btrfs_trans_handle *trans, | |||
10660 | 10660 | ||
10661 | mutex_lock(&trans->transaction->cache_write_mutex); | 10661 | mutex_lock(&trans->transaction->cache_write_mutex); |
10662 | /* | 10662 | /* |
10663 | * make sure our free spache cache IO is done before remove the | 10663 | * Make sure our free space cache IO is done before removing the |
10664 | * free space inode | 10664 | * free space inode |
10665 | */ | 10665 | */ |
10666 | spin_lock(&trans->transaction->dirty_bgs_lock); | 10666 | spin_lock(&trans->transaction->dirty_bgs_lock); |
@@ -11177,7 +11177,7 @@ static int btrfs_trim_free_extents(struct btrfs_device *device, | |||
11177 | if (!blk_queue_discard(bdev_get_queue(device->bdev))) | 11177 | if (!blk_queue_discard(bdev_get_queue(device->bdev))) |
11178 | return 0; | 11178 | return 0; |
11179 | 11179 | ||
11180 | /* Not writeable = nothing to do. */ | 11180 | /* Not writable = nothing to do. */ |
11181 | if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) | 11181 | if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) |
11182 | return 0; | 11182 | return 0; |
11183 | 11183 | ||