Skip to content

Commit e0d5e3b

Browse files
fdmananakdave
authored andcommitted
btrfs: update outdated comment for overwrite_item()
The function is exclusively used for log replay since commit 3eb4234 ("btrfs: remove outdated logic from overwrite_item() and add assertion"), so update the comment so that it doesn't say it can be used for logging. Also some minor rewording for clarity and while at it reformat the affected text so that it fits closer to the 80 characters limit for comments. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 5fbfb3f commit e0d5e3b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/btrfs/tree-log.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ static int process_one_buffer(struct btrfs_root *log,
376376
}
377377

378378
/*
379-
* Item overwrite used by replay and tree logging. eb, slot and key all refer
380-
* to the src data we are copying out.
379+
* Item overwrite used by log replay. The given eb, slot and key all refer to
380+
* the source data we are copying out.
381381
*
382-
* root is the tree we are copying into, and path is a scratch
383-
* path for use in this function (it should be released on entry and
384-
* will be released on exit).
382+
* The given root is for the tree we are copying into, and path is a scratch
383+
* path for use in this function (it should be released on entry and will be
384+
* released on exit).
385385
*
386386
* If the key is already in the destination tree the existing item is
387387
* overwritten. If the existing item isn't big enough, it is extended.

0 commit comments

Comments
 (0)