Skip to content

Commit 1a9fd41

Browse files
committed
btrfs: fix typos in comments
Fix typos that have snuck in since the last round. Found by codespell. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent c86bdc9 commit 1a9fd41

21 files changed

Lines changed: 32 additions & 32 deletions

fs/btrfs/backref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,7 @@ static int handle_direct_tree_backref(struct btrfs_backref_cache *cache,
26752675
*
26762676
* @ref_key: The same as @ref_key in handle_direct_tree_backref()
26772677
* @tree_key: The first key of this tree block.
2678-
* @path: A clean (released) path, to avoid allocating path everytime
2678+
* @path: A clean (released) path, to avoid allocating path every time
26792679
* the function get called.
26802680
*/
26812681
static int handle_indirect_tree_backref(struct btrfs_backref_cache *cache,

fs/btrfs/ctree.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,9 +2757,9 @@ enum btrfs_reserve_flush_enum {
27572757
/*
27582758
* Flush space by above mentioned methods and by:
27592759
* - Running delayed iputs
2760-
* - Commiting transaction
2760+
* - Committing transaction
27612761
*
2762-
* Can be interruped by fatal signal.
2762+
* Can be interrupted by a fatal signal.
27632763
*/
27642764
BTRFS_RESERVE_FLUSH_DATA,
27652765
BTRFS_RESERVE_FLUSH_FREE_SPACE_INODE,
@@ -2769,7 +2769,7 @@ enum btrfs_reserve_flush_enum {
27692769
* Pretty much the same as FLUSH_ALL, but can also steal space from
27702770
* global rsv.
27712771
*
2772-
* Can be interruped by fatal signal.
2772+
* Can be interrupted by a fatal signal.
27732773
*/
27742774
BTRFS_RESERVE_FLUSH_ALL_STEAL,
27752775
};

fs/btrfs/delalloc-space.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
* ->outstanding_extents += 1 (current value is 1)
9090
*
9191
* -> set_delalloc
92-
* ->outstanding_extents += 1 (currrent value is 2)
92+
* ->outstanding_extents += 1 (current value is 2)
9393
*
9494
* -> btrfs_delalloc_release_extents()
9595
* ->outstanding_extents -= 1 (current value is 1)

fs/btrfs/dev-replace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* - Write duplication
3838
*
3939
* All new writes will be written to both target and source devices, so even
40-
* if replace gets canceled, sources device still contans up-to-date data.
40+
* if replace gets canceled, sources device still contains up-to-date data.
4141
*
4242
* Location: handle_ops_on_dev_replace() from __btrfs_map_block()
4343
* Start: btrfs_dev_replace_start()

fs/btrfs/discard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void btrfs_discard_update_discardable(struct btrfs_block_group *block_group)
624624
* @fs_info: fs_info of interest
625625
*
626626
* The unused_bgs list needs to be punted to the discard lists because the
627-
* order of operations is changed. In the normal sychronous discard path, the
627+
* order of operations is changed. In the normal synchronous discard path, the
628628
* block groups are trimmed via a single large trim in transaction commit. This
629629
* is ultimately what we are trying to avoid with asynchronous discard. Thus,
630630
* it must be done before going down the unused_bgs path.

fs/btrfs/disk-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
34713471
* At this point we know all the devices that make this filesystem,
34723472
* including the seed devices but we don't know yet if the replace
34733473
* target is required. So free devices that are not part of this
3474-
* filesystem but skip the replace traget device which is checked
3474+
* filesystem but skip the replace target device which is checked
34753475
* below in btrfs_init_dev_replace().
34763476
*/
34773477
btrfs_free_extra_devids(fs_devices);

fs/btrfs/extent-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans,
14251425
* bytenr of the parent block. Since new extents are always
14261426
* created with indirect references, this will only be the case
14271427
* when relocating a shared extent. In that case, root_objectid
1428-
* will be BTRFS_TREE_RELOC_OBJECTID. Otheriwse, parent must
1428+
* will be BTRFS_TREE_RELOC_OBJECTID. Otherwise, parent must
14291429
* be 0
14301430
*
14311431
* @root_objectid: The id of the root where this modification has originated,

fs/btrfs/file-item.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
618618
* @file_start: offset in file this bio begins to describe
619619
* @contig: Boolean. If true/1 means all bio vecs in this bio are
620620
* contiguous and they begin at @file_start in the file. False/0
621-
* means this bio can contains potentially discontigous bio vecs
621+
* means this bio can contain potentially discontiguous bio vecs
622622
* so the logical offset of each should be calculated separately.
623623
*/
624624
blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,

fs/btrfs/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ static int insert_reserved_file_extent(struct btrfs_trans_handle *trans,
27842784
/*
27852785
* If we dropped an inline extent here, we know the range where it is
27862786
* was not marked with the EXTENT_DELALLOC_NEW bit, so we update the
2787-
* number of bytes only for that range contaning the inline extent.
2787+
* number of bytes only for that range containing the inline extent.
27882788
* The remaining of the range will be processed when clearning the
27892789
* EXTENT_DELALLOC_BIT bit through the ordered extent completion.
27902790
*/
@@ -4114,7 +4114,7 @@ static int btrfs_unlink_subvol(struct btrfs_trans_handle *trans,
41144114
* This is a placeholder inode for a subvolume we didn't have a
41154115
* reference to at the time of the snapshot creation. In the meantime
41164116
* we could have renamed the real subvol link into our snapshot, so
4117-
* depending on btrfs_del_root_ref to return -ENOENT here is incorret.
4117+
* depending on btrfs_del_root_ref to return -ENOENT here is incorrect.
41184118
* Instead simply lookup the dir_index_item for this entry so we can
41194119
* remove it. Otherwise we know we have a ref to the root and we can
41204120
* call btrfs_del_root_ref, and it _shouldn't_ fail.

fs/btrfs/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
29842984
err = PTR_ERR(subvol_name_ptr);
29852985
goto free_parent;
29862986
}
2987-
/* subvol_name_ptr is already NULL termined */
2987+
/* subvol_name_ptr is already nul terminated */
29882988
subvol_name = (char *)kbasename(subvol_name_ptr);
29892989
}
29902990
} else {

0 commit comments

Comments
 (0)