]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: remove stale comment from btrfs_free_extent()
authorFilipe Manana <fdmanana@suse.com>
Fri, 15 Sep 2023 15:02:56 +0000 (16:02 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:08 +0000 (16:44 +0200)
A comment at btrfs_free_extent() mentions the call to btrfs_pin_extent()
unlocks the pinned mutex, however that mutex is long gone, it was removed
in 2009 by commit 04018de5d41e ("Btrfs: kill the pinned_mutex"). So just
delete the comment.

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/extent-tree.c

index cb12bfb047e7be6d119f3b2fb495bdcbb0008990..89e3799d39e0bc0947fe279e566e46a8b4024ae7 100644 (file)
@@ -3375,7 +3375,6 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_ref *ref)
             ref->tree_ref.owning_root == BTRFS_TREE_LOG_OBJECTID) ||
            (ref->type == BTRFS_REF_DATA &&
             ref->data_ref.owning_root == BTRFS_TREE_LOG_OBJECTID)) {
-               /* unlocks the pinned mutex */
                btrfs_pin_extent(trans, ref->bytenr, ref->len, 1);
                ret = 0;
        } else if (ref->type == BTRFS_REF_METADATA) {