Skip to content

Commit 7bc59d4

Browse files
committed
btrfs: fix typos in comments and strings
Annual typo fixing pass. Strangely codespell found only about 30% of what is in this patch, the rest was done manually using text spellchecker with a custom dictionary of acceptable terms. Signed-off-by: David Sterba <[email protected]>
1 parent 4589682 commit 7bc59d4

35 files changed

+59
-61
lines changed

fs/btrfs/accessors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static __always_inline void memcpy_split_src(char *dest, const char *src1,
4444
* gives us all the type checking.
4545
*
4646
* The extent buffer pages stored in the array folios may not form a contiguous
47-
* phyusical range, but the API functions assume the linear offset to the range
47+
* physical range, but the API functions assume the linear offset to the range
4848
* from 0 to metadata node size.
4949
*/
5050

fs/btrfs/backref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ static int find_parent_nodes(struct btrfs_backref_walk_ctx *ctx,
16901690
* @ctx->bytenr and @ctx->extent_item_pos. The bytenr of the found leaves are
16911691
* added to the ulist at @ctx->refs, and that ulist is allocated by this
16921692
* function. The caller should free the ulist with free_leaf_list() if
1693-
* @ctx->ignore_extent_item_pos is false, otherwise a fimple ulist_free() is
1693+
* @ctx->ignore_extent_item_pos is false, otherwise a simple ulist_free() is
16941694
* enough.
16951695
*
16961696
* Returns 0 on success and < 0 on error. On error @ctx->refs is not allocated.

fs/btrfs/backref.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ struct btrfs_backref_share_check_ctx {
190190
* It's very common to have several file extent items that point to the
191191
* same extent (bytenr) but with different offsets and lengths. This
192192
* typically happens for COW writes, partial writes into prealloc
193-
* extents, NOCOW writes after snapshoting a root, hole punching or
193+
* extents, NOCOW writes after snapshotting a root, hole punching or
194194
* reflinking within the same file (less common perhaps).
195195
* So keep a small cache with the lookup results for the extent pointed
196196
* by the last few file extent items. This cache is checked, with a
@@ -414,7 +414,7 @@ struct btrfs_backref_cache {
414414
/*
415415
* Whether this cache is for relocation
416416
*
417-
* Reloction backref cache require more info for reloc root compared
417+
* Relocation backref cache require more info for reloc root compared
418418
* to generic backref cache.
419419
*/
420420
bool is_reloc;

fs/btrfs/block-group.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ void btrfs_reclaim_bgs_work(struct work_struct *work)
19641964
* called, which is where we will transfer a reserved extent's
19651965
* size from the "reserved" counter to the "used" counter - this
19661966
* happens when running delayed references. When we relocate the
1967-
* chunk below, relocation first flushes dellaloc, waits for
1967+
* chunk below, relocation first flushes delalloc, waits for
19681968
* ordered extent completion (which is where we create delayed
19691969
* references for data extents) and commits the current
19701970
* transaction (which runs delayed references), and only after
@@ -2832,7 +2832,7 @@ void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans)
28322832
* space or none at all (due to no need to COW, extent buffers
28332833
* were already COWed in the current transaction and still
28342834
* unwritten, tree heights lower than the maximum possible
2835-
* height, etc). For data we generally reserve the axact amount
2835+
* height, etc). For data we generally reserve the exact amount
28362836
* of space we are going to allocate later, the exception is
28372837
* when using compression, as we must reserve space based on the
28382838
* uncompressed data size, because the compression is only done

fs/btrfs/block-group.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum btrfs_discard_state {
6363
* CHUNK_ALLOC_FORCE means it must try to allocate one
6464
*
6565
* CHUNK_ALLOC_FORCE_FOR_EXTENT like CHUNK_ALLOC_FORCE but called from
66-
* find_free_extent() that also activaes the zone
66+
* find_free_extent() that also activates the zone
6767
*/
6868
enum btrfs_chunk_alloc_enum {
6969
CHUNK_ALLOC_NO_FORCE,

fs/btrfs/compression.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ int btrfs_decompress_buf2page(const char *buf, u32 buf_len,
12901290
#define ENTROPY_LVL_HIGH (80)
12911291

12921292
/*
1293-
* For increasead precision in shannon_entropy calculation,
1293+
* For increased precision in shannon_entropy calculation,
12941294
* let's do pow(n, M) to save more digits after comma:
12951295
*
12961296
* - maximum int bit length is 64

fs/btrfs/defrag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void btrfs_add_inode_defrag(struct btrfs_inode *inode, u32 extent_thresh)
153153
}
154154

155155
/*
156-
* Pick the defragable inode that we want, if it doesn't exist, we will get the
156+
* Pick the defraggable inode that we want, if it doesn't exist, we will get the
157157
* next one.
158158
*/
159159
static struct inode_defrag *btrfs_pick_defrag_inode(

fs/btrfs/delayed-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ add_delayed_ref_head(struct btrfs_trans_handle *trans,
895895
}
896896

897897
/*
898-
* Initialize the structure which represents a modification to a an extent.
898+
* Initialize the structure which represents a modification to an extent.
899899
*
900900
* @fs_info: Internal to the mounted filesystem mount structure.
901901
*

fs/btrfs/dev-replace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
637637
break;
638638
case BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED:
639639
case BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED:
640-
DEBUG_WARN("unexpected STARTED ot SUSPENDED dev-replace state");
640+
DEBUG_WARN("unexpected STARTED or SUSPENDED dev-replace state");
641641
ret = BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED;
642642
up_write(&dev_replace->rwsem);
643643
goto leave;

fs/btrfs/disk-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3245,7 +3245,7 @@ int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount)
32453245
/*
32463246
* Subpage runtime limitation on v1 cache.
32473247
*
3248-
* V1 space cache still has some hard codeed PAGE_SIZE usage, while
3248+
* V1 space cache still has some hard coded PAGE_SIZE usage, while
32493249
* we're already defaulting to v2 cache, no need to bother v1 as it's
32503250
* going to be deprecated anyway.
32513251
*/

0 commit comments

Comments
 (0)