@@ -231,9 +231,9 @@ static int add_excluded_extent(struct btrfs_root *root,
231
231
{
232
232
u64 end = start + num_bytes - 1 ;
233
233
set_extent_bits (& root -> fs_info -> freed_extents [0 ],
234
- start , end , EXTENT_UPTODATE , GFP_NOFS );
234
+ start , end , EXTENT_UPTODATE );
235
235
set_extent_bits (& root -> fs_info -> freed_extents [1 ],
236
- start , end , EXTENT_UPTODATE , GFP_NOFS );
236
+ start , end , EXTENT_UPTODATE );
237
237
return 0 ;
238
238
}
239
239
@@ -246,9 +246,9 @@ static void free_excluded_extents(struct btrfs_root *root,
246
246
end = start + cache -> key .offset - 1 ;
247
247
248
248
clear_extent_bits (& root -> fs_info -> freed_extents [0 ],
249
- start , end , EXTENT_UPTODATE , GFP_NOFS );
249
+ start , end , EXTENT_UPTODATE );
250
250
clear_extent_bits (& root -> fs_info -> freed_extents [1 ],
251
- start , end , EXTENT_UPTODATE , GFP_NOFS );
251
+ start , end , EXTENT_UPTODATE );
252
252
}
253
253
254
254
static int exclude_super_stripes (struct btrfs_root * root ,
@@ -980,7 +980,7 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
980
980
* event that tree block loses its owner tree's reference and do the
981
981
* back refs conversion.
982
982
*
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:
984
984
*
985
985
* The reference count of the block is one and the tree is the block's
986
986
* owner tree. Nothing to do in this case.
@@ -2595,7 +2595,7 @@ static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
2595
2595
}
2596
2596
2597
2597
/*
2598
- * Need to drop our head ref lock and re-aqcuire the
2598
+ * Need to drop our head ref lock and re-acquire the
2599
2599
* delayed ref lock and then re-check to make sure
2600
2600
* nobody got added.
2601
2601
*/
@@ -2747,7 +2747,7 @@ static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads)
2747
2747
2748
2748
/*
2749
2749
* 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 .
2751
2751
*/
2752
2752
return div_u64 (num_bytes , BTRFS_LEAF_DATA_SIZE (root ));
2753
2753
}
@@ -2851,7 +2851,7 @@ static void delayed_ref_async_start(struct btrfs_work *work)
2851
2851
}
2852
2852
2853
2853
/*
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
2855
2855
* wait on delayed refs
2856
2856
*/
2857
2857
trans -> sync = true;
@@ -4296,7 +4296,7 @@ void btrfs_free_reserved_data_space_noquota(struct inode *inode, u64 start,
4296
4296
* Called if we need to clear a data reservation for this inode
4297
4297
* Normally in a error case.
4298
4298
*
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
4300
4300
* space framework.
4301
4301
*/
4302
4302
void 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)
4967
4967
* @orig_bytes - the number of bytes we want
4968
4968
* @flush - whether or not we can flush to make our reservation
4969
4969
*
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
4971
4971
* with the block_rsv. If there is not enough space it will make an attempt to
4972
4972
* flush out space to make room. It will do this by flushing delalloc if
4973
4973
* 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)
5572
5572
* common file/directory operations, they change two fs/file trees
5573
5573
* and root tree, the number of items that the qgroup reserves is
5574
5574
* 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().
5576
5576
*/
5577
5577
int btrfs_subvolume_reserve_metadata (struct btrfs_root * root ,
5578
5578
struct btrfs_block_rsv * rsv ,
@@ -5621,7 +5621,7 @@ void btrfs_subvolume_release_metadata(struct btrfs_root *root,
5621
5621
/**
5622
5622
* drop_outstanding_extent - drop an outstanding extent
5623
5623
* @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 .
5625
5625
*
5626
5626
* This is called when we are freeing up an outstanding extent, either called
5627
5627
* 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)
5647
5647
drop_inode_space = 1 ;
5648
5648
5649
5649
/*
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
5651
5651
* reserved then we need to leave the reserved extents count alone.
5652
5652
*/
5653
5653
if (BTRFS_I (inode )-> outstanding_extents >=
@@ -5661,8 +5661,8 @@ static unsigned drop_outstanding_extent(struct inode *inode, u64 num_bytes)
5661
5661
}
5662
5662
5663
5663
/**
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.
5666
5666
* @inode: the inode we're manipulating
5667
5667
* @num_bytes: the number of bytes in question
5668
5668
* @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)
5814
5814
5815
5815
/*
5816
5816
* 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
5818
5818
* reservation, so we reset ->csum_bytes to the csum_bytes
5819
5819
* before we dropped our lock, and then call the free for the
5820
5820
* 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)
5836
5836
5837
5837
/*
5838
5838
* 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
5840
5840
* not had an artificially high ->csum_bytes, so we need to free
5841
5841
* the remainder. If bytes is the same or less then we don't
5842
5842
* 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,
6515
6515
ret = btrfs_discard_extent (root , start ,
6516
6516
end + 1 - start , NULL );
6517
6517
6518
- clear_extent_dirty (unpin , start , end , GFP_NOFS );
6518
+ clear_extent_dirty (unpin , start , end );
6519
6519
unpin_extent_range (root , start , end , true);
6520
6520
mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
6521
6521
cond_resched ();
@@ -7578,7 +7578,7 @@ static noinline int find_free_extent(struct btrfs_root *orig_root,
7578
7578
if (loop == LOOP_CACHING_NOWAIT ) {
7579
7579
/*
7580
7580
* 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
7582
7582
* full search through.
7583
7583
*/
7584
7584
if (orig_have_caching_bg || !full_search )
@@ -7982,7 +7982,7 @@ int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
7982
7982
7983
7983
/*
7984
7984
* 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.
7986
7986
*/
7987
7987
if (!btrfs_fs_incompat (root -> fs_info , MIXED_GROUPS )) {
7988
7988
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,
8032
8032
buf -> start + buf -> len - 1 , GFP_NOFS );
8033
8033
else
8034
8034
set_extent_new (& root -> dirty_log_pages , buf -> start ,
8035
- buf -> start + buf -> len - 1 , GFP_NOFS );
8035
+ buf -> start + buf -> len - 1 );
8036
8036
} else {
8037
8037
buf -> log_index = -1 ;
8038
8038
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)
9426
9426
u64 free_bytes = 0 ;
9427
9427
int factor ;
9428
9428
9429
- /* It's df, we don't care if it's racey */
9429
+ /* It's df, we don't care if it's racy */
9430
9430
if (list_empty (& sinfo -> ro_bgs ))
9431
9431
return 0 ;
9432
9432
@@ -10635,14 +10635,14 @@ void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_info)
10635
10635
*/
10636
10636
mutex_lock (& fs_info -> unused_bg_unpin_mutex );
10637
10637
ret = clear_extent_bits (& fs_info -> freed_extents [0 ], start , end ,
10638
- EXTENT_DIRTY , GFP_NOFS );
10638
+ EXTENT_DIRTY );
10639
10639
if (ret ) {
10640
10640
mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
10641
10641
btrfs_dec_block_group_ro (root , block_group );
10642
10642
goto end_trans ;
10643
10643
}
10644
10644
ret = clear_extent_bits (& fs_info -> freed_extents [1 ], start , end ,
10645
- EXTENT_DIRTY , GFP_NOFS );
10645
+ EXTENT_DIRTY );
10646
10646
if (ret ) {
10647
10647
mutex_unlock (& fs_info -> unused_bg_unpin_mutex );
10648
10648
btrfs_dec_block_group_ro (root , block_group );
0 commit comments