@@ -231,9 +231,9 @@ static int add_excluded_extent(struct btrfs_root *root,
231231{
232232 u64 end = start + num_bytes - 1 ;
233233 set_extent_bits (& root -> fs_info -> freed_extents [0 ],
234- start , end , EXTENT_UPTODATE , GFP_NOFS );
234+ start , end , EXTENT_UPTODATE );
235235 set_extent_bits (& root -> fs_info -> freed_extents [1 ],
236- start , end , EXTENT_UPTODATE , GFP_NOFS );
236+ start , end , EXTENT_UPTODATE );
237237 return 0 ;
238238}
239239
@@ -246,9 +246,9 @@ static void free_excluded_extents(struct btrfs_root *root,
246246 end = start + cache -> key .offset - 1 ;
247247
248248 clear_extent_bits (& root -> fs_info -> freed_extents [0 ],
249- start , end , EXTENT_UPTODATE , GFP_NOFS );
249+ start , end , EXTENT_UPTODATE );
250250 clear_extent_bits (& root -> fs_info -> freed_extents [1 ],
251- start , end , EXTENT_UPTODATE , GFP_NOFS );
251+ start , end , EXTENT_UPTODATE );
252252}
253253
254254static int exclude_super_stripes (struct btrfs_root * root ,
@@ -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;
@@ -4296,7 +4296,7 @@ void btrfs_free_reserved_data_space_noquota(struct inode *inode, u64 start,
42964296 * Called if we need to clear a data reservation for this inode
42974297 * Normally in a error case.
42984298 *
4299- * This one will handle the per-indoe data rsv map for accurate reserved
4299+ * This one will handle the per-inode data rsv map for accurate reserved
43004300 * space framework.
43014301 */
43024302void btrfs_free_reserved_data_space (struct inode * inode , u64 start , u64 len )
@@ -4967,7 +4967,7 @@ void btrfs_init_async_reclaim_work(struct work_struct *work)
49674967 * @orig_bytes - the number of bytes we want
49684968 * @flush - whether or not we can flush to make our reservation
49694969 *
4970- * This will reserve orgi_bytes number of bytes from the space info associated
4970+ * This will reserve orig_bytes number of bytes from the space info associated
49714971 * with the block_rsv. If there is not enough space it will make an attempt to
49724972 * flush out space to make room. It will do this by flushing delalloc if
49734973 * possible or committing the transaction. If flush is 0 then no attempts to
@@ -5572,7 +5572,7 @@ void btrfs_orphan_release_metadata(struct inode *inode)
55725572 * common file/directory operations, they change two fs/file trees
55735573 * and root tree, the number of items that the qgroup reserves is
55745574 * different with the free space reservation. So we can not use
5575- * the space reseravtion mechanism in start_transaction().
5575+ * the space reservation mechanism in start_transaction().
55765576 */
55775577int btrfs_subvolume_reserve_metadata (struct btrfs_root * root ,
55785578 struct btrfs_block_rsv * rsv ,
@@ -5621,7 +5621,7 @@ void btrfs_subvolume_release_metadata(struct btrfs_root *root,
56215621/**
56225622 * drop_outstanding_extent - drop an outstanding extent
56235623 * @inode: the inode we're dropping the extent for
5624- * @num_bytes: the number of bytes we're relaseing .
5624+ * @num_bytes: the number of bytes we're releasing .
56255625 *
56265626 * This is called when we are freeing up an outstanding extent, either called
56275627 * after an error or after an extent is written. This will return the number of
@@ -5647,7 +5647,7 @@ static unsigned drop_outstanding_extent(struct inode *inode, u64 num_bytes)
56475647 drop_inode_space = 1 ;
56485648
56495649 /*
5650- * If we have more or the same amount of outsanding extents than we have
5650+ * If we have more or the same amount of outstanding extents than we have
56515651 * reserved then we need to leave the reserved extents count alone.
56525652 */
56535653 if (BTRFS_I (inode )-> outstanding_extents >=
@@ -5661,8 +5661,8 @@ static unsigned drop_outstanding_extent(struct inode *inode, u64 num_bytes)
56615661}
56625662
56635663/**
5664- * calc_csum_metadata_size - return the amount of metada space that must be
5665- * reserved/free'd for the given bytes.
5664+ * calc_csum_metadata_size - return the amount of metadata space that must be
5665+ * reserved/freed for the given bytes.
56665666 * @inode: the inode we're manipulating
56675667 * @num_bytes: the number of bytes in question
56685668 * @reserve: 1 if we are reserving space, 0 if we are freeing space
@@ -5814,7 +5814,7 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes)
58145814
58155815 /*
58165816 * This is tricky, but first we need to figure out how much we
5817- * free'd from any free-ers that occurred during this
5817+ * freed from any free-ers that occurred during this
58185818 * reservation, so we reset ->csum_bytes to the csum_bytes
58195819 * before we dropped our lock, and then call the free for the
58205820 * number of bytes that were freed while we were trying our
@@ -5836,7 +5836,7 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes)
58365836
58375837 /*
58385838 * Now reset ->csum_bytes to what it should be. If bytes is
5839- * more than to_free then we would have free'd more space had we
5839+ * more than to_free then we would have freed more space had we
58405840 * not had an artificially high ->csum_bytes, so we need to free
58415841 * the remainder. If bytes is the same or less then we don't
58425842 * need to do anything, the other free-ers did the correct
@@ -6515,7 +6515,7 @@ int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans,
65156515 ret = btrfs_discard_extent (root , start ,
65166516 end + 1 - start , NULL );
65176517
6518- clear_extent_dirty (unpin , start , end , GFP_NOFS );
6518+ clear_extent_dirty (unpin , start , end );
65196519 unpin_extent_range (root , start , end , true);
65206520 mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
65216521 cond_resched ();
@@ -7578,7 +7578,7 @@ static noinline int find_free_extent(struct btrfs_root *orig_root,
75787578 if (loop == LOOP_CACHING_NOWAIT ) {
75797579 /*
75807580 * We want to skip the LOOP_CACHING_WAIT step if we
7581- * don't have any unached bgs and we've alrelady done a
7581+ * don't have any uncached bgs and we've already done a
75827582 * full search through.
75837583 */
75847584 if (orig_have_caching_bg || !full_search )
@@ -7982,7 +7982,7 @@ int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
79827982
79837983 /*
79847984 * Mixed block groups will exclude before processing the log so we only
7985- * need to do the exlude dance if this fs isn't mixed.
7985+ * need to do the exclude dance if this fs isn't mixed.
79867986 */
79877987 if (!btrfs_fs_incompat (root -> fs_info , MIXED_GROUPS )) {
79887988 ret = __exclude_logged_extent (root , ins -> objectid , ins -> offset );
@@ -8032,7 +8032,7 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root,
80328032 buf -> start + buf -> len - 1 , GFP_NOFS );
80338033 else
80348034 set_extent_new (& root -> dirty_log_pages , buf -> start ,
8035- buf -> start + buf -> len - 1 , GFP_NOFS );
8035+ buf -> start + buf -> len - 1 );
80368036 } else {
80378037 buf -> log_index = -1 ;
80388038 set_extent_dirty (& trans -> transaction -> dirty_pages , buf -> start ,
@@ -9426,7 +9426,7 @@ u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo)
94269426 u64 free_bytes = 0 ;
94279427 int factor ;
94289428
9429- /* It's df, we don't care if it's racey */
9429+ /* It's df, we don't care if it's racy */
94309430 if (list_empty (& sinfo -> ro_bgs ))
94319431 return 0 ;
94329432
@@ -10635,14 +10635,14 @@ void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info)
1063510635 */
1063610636 mutex_lock (& fs_info -> unused_bg_unpin_mutex );
1063710637 ret = clear_extent_bits (& fs_info -> freed_extents [0 ], start , end ,
10638- EXTENT_DIRTY , GFP_NOFS );
10638+ EXTENT_DIRTY );
1063910639 if (ret ) {
1064010640 mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
1064110641 btrfs_dec_block_group_ro (root , block_group );
1064210642 goto end_trans ;
1064310643 }
1064410644 ret = clear_extent_bits (& fs_info -> freed_extents [1 ], start , end ,
10645- EXTENT_DIRTY , GFP_NOFS );
10645+ EXTENT_DIRTY );
1064610646 if (ret ) {
1064710647 mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
1064810648 btrfs_dec_block_group_ro (root , block_group );
0 commit comments