@@ -980,7 +980,7 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
980980 * event that tree block loses its owner tree's reference and do the
981981 * back refs conversion.
982982 *
983- * When a tree block is COW'd through a tree, there are four cases:
983+ * When a tree block is COWed through a tree, there are four cases:
984984 *
985985 * The reference count of the block is one and the tree is the block's
986986 * owner tree. Nothing to do in this case.
@@ -2595,7 +2595,7 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
25952595 }
25962596
25972597 /*
2598- * Need to drop our head ref lock and re-aqcuire the
2598+ * Need to drop our head ref lock and re-acquire the
25992599 * delayed ref lock and then re-check to make sure
26002600 * nobody got added.
26012601 */
@@ -2747,7 +2747,7 @@ static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads)
27472747
27482748 /*
27492749 * We don't ever fill up leaves all the way so multiply by 2 just to be
2750- * closer to what we're really going to want to ouse .
2750+ * closer to what we're really going to want to use .
27512751 */
27522752 return div_u64 (num_bytes , BTRFS_LEAF_DATA_SIZE (root ));
27532753}
@@ -2851,7 +2851,7 @@ static void delayed_ref_async_start(struct btrfs_work *work)
28512851 }
28522852
28532853 /*
2854- * trans->sync means that when we call end_transaciton , we won't
2854+ * trans->sync means that when we call end_transaction , we won't
28552855 * wait on delayed refs
28562856 */
28572857 trans -> sync = true;
@@ -4243,7 +4243,7 @@ void btrfs_free_reserved_data_space_noquota(struct inode *inode, u64 start,
42434243 * Called if we need to clear a data reservation for this inode
42444244 * Normally in a error case.
42454245 *
4246- * This one will handle the per-indoe data rsv map for accurate reserved
4246+ * This one will handle the per-inode data rsv map for accurate reserved
42474247 * space framework.
42484248 */
42494249void btrfs_free_reserved_data_space (struct inode * inode , u64 start , u64 len )
@@ -4911,7 +4911,7 @@ void btrfs_init_async_reclaim_work(struct work_struct *work)
49114911 * @orig_bytes - the number of bytes we want
49124912 * @flush - whether or not we can flush to make our reservation
49134913 *
4914- * This will reserve orgi_bytes number of bytes from the space info associated
4914+ * This will reserve orig_bytes number of bytes from the space info associated
49154915 * with the block_rsv. If there is not enough space it will make an attempt to
49164916 * flush out space to make room. It will do this by flushing delalloc if
49174917 * possible or committing the transaction. If flush is 0 then no attempts to
@@ -5516,7 +5516,7 @@ void btrfs_orphan_release_metadata(struct inode *inode)
55165516 * common file/directory operations, they change two fs/file trees
55175517 * and root tree, the number of items that the qgroup reserves is
55185518 * different with the free space reservation. So we can not use
5519- * the space reseravtion mechanism in start_transaction().
5519+ * the space reservation mechanism in start_transaction().
55205520 */
55215521int btrfs_subvolume_reserve_metadata (struct btrfs_root * root ,
55225522 struct btrfs_block_rsv * rsv ,
@@ -5565,7 +5565,7 @@ void btrfs_subvolume_release_metadata(struct btrfs_root *root,
55655565/**
55665566 * drop_outstanding_extent - drop an outstanding extent
55675567 * @inode: the inode we're dropping the extent for
5568- * @num_bytes: the number of bytes we're relaseing .
5568+ * @num_bytes: the number of bytes we're releasing .
55695569 *
55705570 * This is called when we are freeing up an outstanding extent, either called
55715571 * after an error or after an extent is written. This will return the number of
@@ -5591,7 +5591,7 @@ static unsigned drop_outstanding_extent(struct inode *inode, u64 num_bytes)
55915591 drop_inode_space = 1 ;
55925592
55935593 /*
5594- * If we have more or the same amount of outsanding extents than we have
5594+ * If we have more or the same amount of outstanding extents than we have
55955595 * reserved then we need to leave the reserved extents count alone.
55965596 */
55975597 if (BTRFS_I (inode )-> outstanding_extents >=
@@ -5605,8 +5605,8 @@ static unsigned drop_outstanding_extent(struct inode *inode, u64 num_bytes)
56055605}
56065606
56075607/**
5608- * calc_csum_metadata_size - return the amount of metada space that must be
5609- * reserved/free'd for the given bytes.
5608+ * calc_csum_metadata_size - return the amount of metadata space that must be
5609+ * reserved/freed for the given bytes.
56105610 * @inode: the inode we're manipulating
56115611 * @num_bytes: the number of bytes in question
56125612 * @reserve: 1 if we are reserving space, 0 if we are freeing space
@@ -5758,7 +5758,7 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes)
57585758
57595759 /*
57605760 * This is tricky, but first we need to figure out how much we
5761- * free'd from any free-ers that occurred during this
5761+ * freed from any free-ers that occurred during this
57625762 * reservation, so we reset ->csum_bytes to the csum_bytes
57635763 * before we dropped our lock, and then call the free for the
57645764 * number of bytes that were freed while we were trying our
@@ -5780,7 +5780,7 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes)
57805780
57815781 /*
57825782 * Now reset ->csum_bytes to what it should be. If bytes is
5783- * more than to_free then we would have free'd more space had we
5783+ * more than to_free then we would have freed more space had we
57845784 * not had an artificially high ->csum_bytes, so we need to free
57855785 * the remainder. If bytes is the same or less then we don't
57865786 * need to do anything, the other free-ers did the correct
@@ -7471,7 +7471,7 @@ static noinline int find_free_extent(struct btrfs_root *orig_root,
74717471 if (loop == LOOP_CACHING_NOWAIT ) {
74727472 /*
74737473 * We want to skip the LOOP_CACHING_WAIT step if we
7474- * don't have any unached bgs and we've alrelady done a
7474+ * don't have any uncached bgs and we've already done a
74757475 * full search through.
74767476 */
74777477 if (orig_have_caching_bg || !full_search )
@@ -7873,7 +7873,7 @@ int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
78737873
78747874 /*
78757875 * Mixed block groups will exclude before processing the log so we only
7876- * need to do the exlude dance if this fs isn't mixed.
7876+ * need to do the exclude dance if this fs isn't mixed.
78777877 */
78787878 if (!btrfs_fs_incompat (root -> fs_info , MIXED_GROUPS )) {
78797879 ret = __exclude_logged_extent (root , ins -> objectid , ins -> offset );
@@ -9317,7 +9317,7 @@ u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo)
93179317 u64 free_bytes = 0 ;
93189318 int factor ;
93199319
9320- /* It's df, we don't care if it's racey */
9320+ /* It's df, we don't care if it's racy */
93219321 if (list_empty (& sinfo -> ro_bgs ))
93229322 return 0 ;
93239323
0 commit comments