]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: fix function name in comment for btrfs_remove_ordered_extent()
authorFilipe Manana <fdmanana@suse.com>
Tue, 14 May 2024 12:19:12 +0000 (13:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:16 +0000 (15:33 +0200)
Due to a refactoring introduced by commit 53d9981ca20e ("btrfs: split
btrfs_alloc_ordered_extent to allocation and insertion helpers"), the
function btrfs_alloc_ordered_extent() was renamed to
alloc_ordered_extent(), so the comment at btrfs_remove_ordered_extent()
is no longer very accurate. Update the comment to refer to the new
name "alloc_ordered_extent()".

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ordered-data.c

index 35a413ce935d9e6ce67bf103940b879e43ab3ead..7d175d10a6d0c35393dc8098433a4f22cf6fcf47 100644 (file)
@@ -626,7 +626,7 @@ void btrfs_remove_ordered_extent(struct btrfs_inode *btrfs_inode,
        freespace_inode = btrfs_is_free_space_inode(btrfs_inode);
 
        btrfs_lockdep_acquire(fs_info, btrfs_trans_pending_ordered);
-       /* This is paired with btrfs_alloc_ordered_extent. */
+       /* This is paired with alloc_ordered_extent(). */
        spin_lock(&btrfs_inode->lock);
        btrfs_mod_outstanding_extents(btrfs_inode, -1);
        spin_unlock(&btrfs_inode->lock);