Skip to content

Commit

Permalink
btrfs: remove dead comment on btrfs_add_dead_root()
Browse files Browse the repository at this point in the history
The old comment is from the initial merge of btrfs, but since commit
5d4f98a ("Btrfs: Mixed back reference  (FORWARD ROLLING FORMAT
CHANGE)") changed the behavior to not to allocate any extra memory,
the comment on the memory allocation part is out-of-date.

Fix it by removing the dead part and change it to modern behavior.

Signed-off-by: Qu Wenruo <wqu@suse.com>
  • Loading branch information
adam900710 authored and intel-lab-lkp committed Jun 28, 2021
1 parent 8f7e881 commit 5d6ac4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/btrfs/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,9 +1316,10 @@ static noinline int commit_cowonly_roots(struct btrfs_trans_handle *trans)
}

/*
* dead roots are old snapshots that need to be deleted. This allocates
* a dirty root struct and adds it into the list of dead roots that need to
* be deleted
* Dead roots are old snapshots that need to be deleted.
*
* This helper will queue them to the dead_roots list to be deleted by
* cleaner thread.
*/
void btrfs_add_dead_root(struct btrfs_root *root)
{
Expand Down

0 comments on commit 5d6ac4b

Please sign in to comment.