Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+32 -32
+1 -1
fs/btrfs/backref.c
··· 2675 2675 * 2676 2676 * @ref_key: The same as @ref_key in handle_direct_tree_backref() 2677 2677 * @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 2679 2679 * the function get called. 2680 2680 */ 2681 2681 static int handle_indirect_tree_backref(struct btrfs_backref_cache *cache,
+3 -3
fs/btrfs/ctree.h
··· 2757 2757 /* 2758 2758 * Flush space by above mentioned methods and by: 2759 2759 * - Running delayed iputs 2760 - * - Commiting transaction 2760 + * - Committing transaction 2761 2761 * 2762 - * Can be interruped by fatal signal. 2762 + * Can be interrupted by a fatal signal. 2763 2763 */ 2764 2764 BTRFS_RESERVE_FLUSH_DATA, 2765 2765 BTRFS_RESERVE_FLUSH_FREE_SPACE_INODE, ··· 2769 2769 * Pretty much the same as FLUSH_ALL, but can also steal space from 2770 2770 * global rsv. 2771 2771 * 2772 - * Can be interruped by fatal signal. 2772 + * Can be interrupted by a fatal signal. 2773 2773 */ 2774 2774 BTRFS_RESERVE_FLUSH_ALL_STEAL, 2775 2775 };
+1 -1
fs/btrfs/delalloc-space.c
··· 89 89 * ->outstanding_extents += 1 (current value is 1) 90 90 * 91 91 * -> set_delalloc 92 - * ->outstanding_extents += 1 (currrent value is 2) 92 + * ->outstanding_extents += 1 (current value is 2) 93 93 * 94 94 * -> btrfs_delalloc_release_extents() 95 95 * ->outstanding_extents -= 1 (current value is 1)
+1 -1
fs/btrfs/dev-replace.c
··· 37 37 * - Write duplication 38 38 * 39 39 * 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. 41 41 * 42 42 * Location: handle_ops_on_dev_replace() from __btrfs_map_block() 43 43 * Start: btrfs_dev_replace_start()
+1 -1
fs/btrfs/discard.c
··· 624 624 * @fs_info: fs_info of interest 625 625 * 626 626 * 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 628 628 * block groups are trimmed via a single large trim in transaction commit. This 629 629 * is ultimately what we are trying to avoid with asynchronous discard. Thus, 630 630 * it must be done before going down the unused_bgs path.
+1 -1
fs/btrfs/disk-io.c
··· 3471 3471 * At this point we know all the devices that make this filesystem, 3472 3472 * including the seed devices but we don't know yet if the replace 3473 3473 * 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 3475 3475 * below in btrfs_init_dev_replace(). 3476 3476 */ 3477 3477 btrfs_free_extra_devids(fs_devices);
+1 -1
fs/btrfs/extent-tree.c
··· 1425 1425 * bytenr of the parent block. Since new extents are always 1426 1426 * created with indirect references, this will only be the case 1427 1427 * 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 1429 1429 * be 0 1430 1430 * 1431 1431 * @root_objectid: The id of the root where this modification has originated,
+1 -1
fs/btrfs/file-item.c
··· 618 618 * @file_start: offset in file this bio begins to describe 619 619 * @contig: Boolean. If true/1 means all bio vecs in this bio are 620 620 * 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 622 622 * so the logical offset of each should be calculated separately. 623 623 */ 624 624 blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,
+2 -2
fs/btrfs/inode.c
··· 2784 2784 /* 2785 2785 * If we dropped an inline extent here, we know the range where it is 2786 2786 * 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. 2788 2788 * The remaining of the range will be processed when clearning the 2789 2789 * EXTENT_DELALLOC_BIT bit through the ordered extent completion. 2790 2790 */ ··· 4114 4114 * This is a placeholder inode for a subvolume we didn't have a 4115 4115 * reference to at the time of the snapshot creation. In the meantime 4116 4116 * 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. 4118 4118 * Instead simply lookup the dir_index_item for this entry so we can 4119 4119 * remove it. Otherwise we know we have a ref to the root and we can 4120 4120 * call btrfs_del_root_ref, and it _shouldn't_ fail.
+1 -1
fs/btrfs/ioctl.c
··· 2984 2984 err = PTR_ERR(subvol_name_ptr); 2985 2985 goto free_parent; 2986 2986 } 2987 - /* subvol_name_ptr is already NULL termined */ 2987 + /* subvol_name_ptr is already nul terminated */ 2988 2988 subvol_name = (char *)kbasename(subvol_name_ptr); 2989 2989 } 2990 2990 } else {
+2 -2
fs/btrfs/locking.c
··· 57 57 /* 58 58 * Try-lock for read. 59 59 * 60 - * Retrun 1 if the rwlock has been taken, 0 otherwise 60 + * Return 1 if the rwlock has been taken, 0 otherwise 61 61 */ 62 62 int btrfs_try_tree_read_lock(struct extent_buffer *eb) 63 63 { ··· 72 72 /* 73 73 * Try-lock for write. 74 74 * 75 - * Retrun 1 if the rwlock has been taken, 0 otherwise 75 + * Return 1 if the rwlock has been taken, 0 otherwise 76 76 */ 77 77 int btrfs_try_tree_write_lock(struct extent_buffer *eb) 78 78 {
+1 -1
fs/btrfs/props.c
··· 348 348 349 349 /* 350 350 * This is not strictly necessary as the property should be 351 - * valid, but in case it isn't, don't propagate it futher. 351 + * valid, but in case it isn't, don't propagate it further. 352 352 */ 353 353 ret = h->validate(value, strlen(value)); 354 354 if (ret)
+1 -1
fs/btrfs/qgroup.c
··· 2521 2521 int ret = 0; 2522 2522 2523 2523 /* 2524 - * If quotas get disabled meanwhile, the resouces need to be freed and 2524 + * If quotas get disabled meanwhile, the resources need to be freed and 2525 2525 * we can't just exit here. 2526 2526 */ 2527 2527 if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags))
+1 -1
fs/btrfs/scrub.c
··· 2486 2486 * the csum into @csum. 2487 2487 * 2488 2488 * The search source is sctx->csum_list, which is a pre-populated list 2489 - * storing bytenr ordered csum ranges. We're reponsible to cleanup any range 2489 + * storing bytenr ordered csum ranges. We're responsible to cleanup any range 2490 2490 * that is before @logical. 2491 2491 * 2492 2492 * Return 0 if there is no csum for the range.
+1 -1
fs/btrfs/send.c
··· 6514 6514 * updates the inode item, but it only changes the iversion (sequence 6515 6515 * field in the inode item) of the inode, so if a file is deduplicated 6516 6516 * the same amount of times in both the parent and send snapshots, its 6517 - * iversion becames the same in both snapshots, whence the inode item is 6517 + * iversion becomes the same in both snapshots, whence the inode item is 6518 6518 * the same on both snapshots. 6519 6519 */ 6520 6520 if (sctx->cur_ino != sctx->cmp_key->objectid)
+2 -2
fs/btrfs/space-info.c
··· 389 389 390 390 ticket = list_first_entry(head, struct reserve_ticket, list); 391 391 392 - /* Check and see if our ticket can be satisified now. */ 392 + /* Check and see if our ticket can be satisfied now. */ 393 393 if ((used + ticket->bytes <= space_info->total_bytes) || 394 394 btrfs_can_overcommit(fs_info, space_info, ticket->bytes, 395 395 flush)) { ··· 961 961 * if it doesn't feel like the space reclaimed by the commit 962 962 * would result in the ticket succeeding. However if we have a 963 963 * smaller ticket in the queue it may be small enough to be 964 - * satisified by committing the transaction, so if any 964 + * satisfied by committing the transaction, so if any 965 965 * subsequent ticket is smaller than the first ticket go ahead 966 966 * and send us back for another loop through the enospc flushing 967 967 * code.
+1 -1
fs/btrfs/tests/extent-map-tests.c
··· 557 557 { 558 558 /* 559 559 * Test a chunk with 2 data stripes one of which 560 - * interesects the physical address of the super block 560 + * intersects the physical address of the super block 561 561 * is correctly recognised. 562 562 */ 563 563 .raid_type = BTRFS_BLOCK_GROUP_RAID1,
+4 -4
fs/btrfs/volumes.c
··· 717 717 718 718 /* 719 719 * Handles the case where scanned device is part of an fs that had 720 - * multiple successful changes of FSID but curently device didn't 720 + * multiple successful changes of FSID but currently device didn't 721 721 * observe it. Meaning our fsid will be different than theirs. We need 722 722 * to handle two subcases : 723 723 * 1 - The fs still continues to have different METADATA/FSID uuids. ··· 1550 1550 * check to ensure dev extents are not double allocated. 1551 1551 * This makes the function safe to allocate dev extents but may not report 1552 1552 * correct usable device space, as device extent freed in current transaction 1553 - * is not reported as avaiable. 1553 + * is not reported as available. 1554 1554 */ 1555 1555 static int find_free_dev_extent_start(struct btrfs_device *device, 1556 1556 u64 num_bytes, u64 search_start, u64 *start, ··· 6152 6152 offset = logical - em->start; 6153 6153 /* Len of a stripe in a chunk */ 6154 6154 stripe_len = map->stripe_len; 6155 - /* Stripe wher this block falls in */ 6155 + /* Stripe where this block falls in */ 6156 6156 stripe_nr = div64_u64(offset, stripe_len); 6157 6157 /* Offset of stripe in the chunk */ 6158 6158 stripe_offset = stripe_nr * stripe_len; ··· 7863 7863 ret = -EUCLEAN; 7864 7864 } 7865 7865 7866 - /* Make sure no dev extent is beyond device bondary */ 7866 + /* Make sure no dev extent is beyond device boundary */ 7867 7867 dev = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL); 7868 7868 if (!dev) { 7869 7869 btrfs_err(fs_info, "failed to find devid %llu", devid);
+2 -2
fs/btrfs/zoned.c
··· 81 81 * *: Special case, no superblock is written 82 82 * 0: Use write pointer of zones[0] 83 83 * 1: Use write pointer of zones[1] 84 - * C: Compare super blcoks from zones[0] and zones[1], use the latest 84 + * C: Compare super blocks from zones[0] and zones[1], use the latest 85 85 * one determined by generation 86 86 * x: Invalid state 87 87 */ ··· 433 433 } 434 434 435 435 /* 436 - * If zones[0] is conventional, always use the beggining of the 436 + * If zones[0] is conventional, always use the beginning of the 437 437 * zone to record superblock. No need to validate in that case. 438 438 */ 439 439 if (zone_info->sb_zones[BTRFS_NR_SB_LOG_ZONES * i].type ==
+2 -2
include/uapi/linux/btrfs.h
··· 154 154 __u64 tree_bytes_scrubbed; /* # of tree bytes scrubbed */ 155 155 __u64 read_errors; /* # of read errors encountered (EIO) */ 156 156 __u64 csum_errors; /* # of failed csum checks */ 157 - __u64 verify_errors; /* # of occurences, where the metadata 157 + __u64 verify_errors; /* # of occurrences, where the metadata 158 158 * of a tree block did not match the 159 159 * expected values, like generation or 160 160 * logical */ ··· 174 174 __u64 last_physical; /* last physical address scrubbed. In 175 175 * case a scrub was aborted, this can 176 176 * be used to restart the scrub */ 177 - __u64 unverified_errors; /* # of occurences where a read for a 177 + __u64 unverified_errors; /* # of occurrences where a read for a 178 178 * full (64k) bio failed, but the re- 179 179 * check succeeded for each 4k piece. 180 180 * Intermittent error. */
+2 -2
include/uapi/linux/btrfs_tree.h
··· 59 59 /* for storing balance parameters in the root tree */ 60 60 #define BTRFS_BALANCE_OBJECTID -4ULL 61 61 62 - /* orhpan objectid for tracking unlinked/truncated files */ 62 + /* orphan objectid for tracking unlinked/truncated files */ 63 63 #define BTRFS_ORPHAN_OBJECTID -5ULL 64 64 65 65 /* does write ahead logging to speed up fsyncs */ ··· 275 275 #define BTRFS_PERSISTENT_ITEM_KEY 249 276 276 277 277 /* 278 - * Persistantly stores the device replace state in the device tree. 278 + * Persistently stores the device replace state in the device tree. 279 279 * The key is built like this: (0, BTRFS_DEV_REPLACE_KEY, 0). 280 280 */ 281 281 #define BTRFS_DEV_REPLACE_KEY 250