···26752675 *26762676 * @ref_key: The same as @ref_key in handle_direct_tree_backref()26772677 * @tree_key: The first key of this tree block.26782678- * @path: A clean (released) path, to avoid allocating path everytime26782678+ * @path: A clean (released) path, to avoid allocating path every time26792679 * the function get called.26802680 */26812681static int handle_indirect_tree_backref(struct btrfs_backref_cache *cache,
+3-3
fs/btrfs/ctree.h
···27572757 /*27582758 * Flush space by above mentioned methods and by:27592759 * - Running delayed iputs27602760- * - Commiting transaction27602760+ * - Committing transaction27612761 *27622762- * Can be interruped by fatal signal.27622762+ * Can be interrupted by a fatal signal.27632763 */27642764 BTRFS_RESERVE_FLUSH_DATA,27652765 BTRFS_RESERVE_FLUSH_FREE_SPACE_INODE,···27692769 * Pretty much the same as FLUSH_ALL, but can also steal space from27702770 * global rsv.27712771 *27722772- * Can be interruped by fatal signal.27722772+ * Can be interrupted by a fatal signal.27732773 */27742774 BTRFS_RESERVE_FLUSH_ALL_STEAL,27752775};
+1-1
fs/btrfs/delalloc-space.c
···8989 * ->outstanding_extents += 1 (current value is 1)9090 *9191 * -> set_delalloc9292- * ->outstanding_extents += 1 (currrent value is 2)9292+ * ->outstanding_extents += 1 (current value is 2)9393 *9494 * -> btrfs_delalloc_release_extents()9595 * ->outstanding_extents -= 1 (current value is 1)
+1-1
fs/btrfs/dev-replace.c
···3737 * - Write duplication3838 *3939 * All new writes will be written to both target and source devices, so even4040- * if replace gets canceled, sources device still contans up-to-date data.4040+ * 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()
+1-1
fs/btrfs/discard.c
···624624 * @fs_info: fs_info of interest625625 *626626 * The unused_bgs list needs to be punted to the discard lists because the627627- * order of operations is changed. In the normal sychronous discard path, the627627+ * order of operations is changed. In the normal synchronous discard path, the628628 * block groups are trimmed via a single large trim in transaction commit. This629629 * is ultimately what we are trying to avoid with asynchronous discard. Thus,630630 * it must be done before going down the unused_bgs path.
+1-1
fs/btrfs/disk-io.c
···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 replace34733473 * target is required. So free devices that are not part of this34743474- * filesystem but skip the replace traget device which is checked34743474+ * filesystem but skip the replace target device which is checked34753475 * below in btrfs_init_dev_replace().34763476 */34773477 btrfs_free_extra_devids(fs_devices);
+1-1
fs/btrfs/extent-tree.c
···14251425 * bytenr of the parent block. Since new extents are always14261426 * created with indirect references, this will only be the case14271427 * when relocating a shared extent. In that case, root_objectid14281428- * will be BTRFS_TREE_RELOC_OBJECTID. Otheriwse, parent must14281428+ * will be BTRFS_TREE_RELOC_OBJECTID. Otherwise, parent must14291429 * be 014301430 *14311431 * @root_objectid: The id of the root where this modification has originated,
+1-1
fs/btrfs/file-item.c
···618618 * @file_start: offset in file this bio begins to describe619619 * @contig: Boolean. If true/1 means all bio vecs in this bio are620620 * contiguous and they begin at @file_start in the file. False/0621621- * means this bio can contains potentially discontigous bio vecs621621+ * means this bio can contain potentially discontiguous bio vecs622622 * so the logical offset of each should be calculated separately.623623 */624624blk_status_t btrfs_csum_one_bio(struct btrfs_inode *inode, struct bio *bio,
+2-2
fs/btrfs/inode.c
···27842784 /*27852785 * If we dropped an inline extent here, we know the range where it is27862786 * was not marked with the EXTENT_DELALLOC_NEW bit, so we update the27872787- * number of bytes only for that range contaning the inline extent.27872787+ * number of bytes only for that range containing the inline extent.27882788 * The remaining of the range will be processed when clearning the27892789 * EXTENT_DELALLOC_BIT bit through the ordered extent completion.27902790 */···41144114 * This is a placeholder inode for a subvolume we didn't have a41154115 * reference to at the time of the snapshot creation. In the meantime41164116 * we could have renamed the real subvol link into our snapshot, so41174117- * depending on btrfs_del_root_ref to return -ENOENT here is incorret.41174117+ * 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 can41194119 * remove it. Otherwise we know we have a ref to the root and we can41204120 * call btrfs_del_root_ref, and it _shouldn't_ fail.
···5757/*5858 * Try-lock for read.5959 *6060- * Retrun 1 if the rwlock has been taken, 0 otherwise6060+ * Return 1 if the rwlock has been taken, 0 otherwise6161 */6262int btrfs_try_tree_read_lock(struct extent_buffer *eb)6363{···7272/*7373 * Try-lock for write.7474 *7575- * Retrun 1 if the rwlock has been taken, 0 otherwise7575+ * Return 1 if the rwlock has been taken, 0 otherwise7676 */7777int btrfs_try_tree_write_lock(struct extent_buffer *eb)7878{
+1-1
fs/btrfs/props.c
···348348349349 /*350350 * This is not strictly necessary as the property should be351351- * valid, but in case it isn't, don't propagate it futher.351351+ * valid, but in case it isn't, don't propagate it further.352352 */353353 ret = h->validate(value, strlen(value));354354 if (ret)
+1-1
fs/btrfs/qgroup.c
···25212521 int ret = 0;2522252225232523 /*25242524- * If quotas get disabled meanwhile, the resouces need to be freed and25242524+ * If quotas get disabled meanwhile, the resources need to be freed and25252525 * we can't just exit here.25262526 */25272527 if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags))
+1-1
fs/btrfs/scrub.c
···24862486 * the csum into @csum.24872487 *24882488 * The search source is sctx->csum_list, which is a pre-populated list24892489- * storing bytenr ordered csum ranges. We're reponsible to cleanup any range24892489+ * storing bytenr ordered csum ranges. We're responsible to cleanup any range24902490 * that is before @logical.24912491 *24922492 * Return 0 if there is no csum for the range.
+1-1
fs/btrfs/send.c
···65146514 * updates the inode item, but it only changes the iversion (sequence65156515 * field in the inode item) of the inode, so if a file is deduplicated65166516 * the same amount of times in both the parent and send snapshots, its65176517- * iversion becames the same in both snapshots, whence the inode item is65176517+ * iversion becomes the same in both snapshots, whence the inode item is65186518 * the same on both snapshots.65196519 */65206520 if (sctx->cur_ino != sctx->cmp_key->objectid)
+2-2
fs/btrfs/space-info.c
···389389390390 ticket = list_first_entry(head, struct reserve_ticket, list);391391392392- /* Check and see if our ticket can be satisified now. */392392+ /* Check and see if our ticket can be satisfied now. */393393 if ((used + ticket->bytes <= space_info->total_bytes) ||394394 btrfs_can_overcommit(fs_info, space_info, ticket->bytes,395395 flush)) {···961961 * if it doesn't feel like the space reclaimed by the commit962962 * would result in the ticket succeeding. However if we have a963963 * smaller ticket in the queue it may be small enough to be964964- * satisified by committing the transaction, so if any964964+ * satisfied by committing the transaction, so if any965965 * subsequent ticket is smaller than the first ticket go ahead966966 * and send us back for another loop through the enospc flushing967967 * code.
+1-1
fs/btrfs/tests/extent-map-tests.c
···557557 {558558 /*559559 * Test a chunk with 2 data stripes one of which560560- * interesects the physical address of the super block560560+ * intersects the physical address of the super block561561 * is correctly recognised.562562 */563563 .raid_type = BTRFS_BLOCK_GROUP_RAID1,
+4-4
fs/btrfs/volumes.c
···717717718718 /*719719 * Handles the case where scanned device is part of an fs that had720720- * multiple successful changes of FSID but curently device didn't720720+ * multiple successful changes of FSID but currently device didn't721721 * observe it. Meaning our fsid will be different than theirs. We need722722 * to handle two subcases :723723 * 1 - The fs still continues to have different METADATA/FSID uuids.···15501550 * check to ensure dev extents are not double allocated.15511551 * This makes the function safe to allocate dev extents but may not report15521552 * correct usable device space, as device extent freed in current transaction15531553- * is not reported as avaiable.15531553+ * is not reported as available.15541554 */15551555static int find_free_dev_extent_start(struct btrfs_device *device,15561556 u64 num_bytes, u64 search_start, u64 *start,···61526152 offset = logical - em->start;61536153 /* Len of a stripe in a chunk */61546154 stripe_len = map->stripe_len;61556155- /* Stripe wher this block falls in */61556155+ /* Stripe where this block falls in */61566156 stripe_nr = div64_u64(offset, stripe_len);61576157 /* Offset of stripe in the chunk */61586158 stripe_offset = stripe_nr * stripe_len;···78637863 ret = -EUCLEAN;78647864 }7865786578667866- /* Make sure no dev extent is beyond device bondary */78667866+ /* Make sure no dev extent is beyond device boundary */78677867 dev = btrfs_find_device(fs_info->fs_devices, devid, NULL, NULL);78687868 if (!dev) {78697869 btrfs_err(fs_info, "failed to find devid %llu", devid);
+2-2
fs/btrfs/zoned.c
···8181 * *: Special case, no superblock is written8282 * 0: Use write pointer of zones[0]8383 * 1: Use write pointer of zones[1]8484- * C: Compare super blcoks from zones[0] and zones[1], use the latest8484+ * C: Compare super blocks from zones[0] and zones[1], use the latest8585 * one determined by generation8686 * x: Invalid state8787 */···433433 }434434435435 /*436436- * If zones[0] is conventional, always use the beggining of the436436+ * If zones[0] is conventional, always use the beginning of the437437 * zone to record superblock. No need to validate in that case.438438 */439439 if (zone_info->sb_zones[BTRFS_NR_SB_LOG_ZONES * i].type ==
+2-2
include/uapi/linux/btrfs.h
···154154 __u64 tree_bytes_scrubbed; /* # of tree bytes scrubbed */155155 __u64 read_errors; /* # of read errors encountered (EIO) */156156 __u64 csum_errors; /* # of failed csum checks */157157- __u64 verify_errors; /* # of occurences, where the metadata157157+ __u64 verify_errors; /* # of occurrences, where the metadata158158 * of a tree block did not match the159159 * expected values, like generation or160160 * logical */···174174 __u64 last_physical; /* last physical address scrubbed. In175175 * case a scrub was aborted, this can176176 * be used to restart the scrub */177177- __u64 unverified_errors; /* # of occurences where a read for a177177+ __u64 unverified_errors; /* # of occurrences where a read for a178178 * full (64k) bio failed, but the re-179179 * check succeeded for each 4k piece.180180 * Intermittent error. */
+2-2
include/uapi/linux/btrfs_tree.h
···5959/* for storing balance parameters in the root tree */6060#define BTRFS_BALANCE_OBJECTID -4ULL61616262-/* orhpan objectid for tracking unlinked/truncated files */6262+/* orphan objectid for tracking unlinked/truncated files */6363#define BTRFS_ORPHAN_OBJECTID -5ULL64646565/* does write ahead logging to speed up fsyncs */···275275#define BTRFS_PERSISTENT_ITEM_KEY 249276276277277/*278278- * Persistantly stores the device replace state in the device tree.278278+ * Persistently stores the device replace state in the device tree.279279 * The key is built like this: (0, BTRFS_DEV_REPLACE_KEY, 0).280280 */281281#define BTRFS_DEV_REPLACE_KEY 250