summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-03-13 15:47:05 +0000
committerDavid Sterba <dsterba@suse.com>2025-03-18 20:35:55 +0100
commite0d5e3b743f93953229bbbf36d9ca5b4893b515e (patch)
treec3b62bb8a8fcca91e759ed2fec7918752adc80c4
parent5fbfb3f01d298077ce749a0381369202f456a9f7 (diff)
downloadlinux-e0d5e3b743f93953229bbbf36d9ca5b4893b515e.tar.gz
linux-e0d5e3b743f93953229bbbf36d9ca5b4893b515e.tar.bz2
linux-e0d5e3b743f93953229bbbf36d9ca5b4893b515e.zip
btrfs: update outdated comment for overwrite_item()
The function is exclusively used for log replay since commit 3eb423442483 ("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>
-rw-r--r--fs/btrfs/tree-log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index f23feddb41c5..889b388c3708 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -376,12 +376,12 @@ static int process_one_buffer(struct btrfs_root *log,
}
/*
- * Item overwrite used by replay and tree logging. eb, slot and key all refer
- * to the src data we are copying out.
+ * Item overwrite used by log replay. The given eb, slot and key all refer to
+ * the source data we are copying out.
*
- * root is the tree we are copying into, and path is a scratch
- * path for use in this function (it should be released on entry and
- * will be released on exit).
+ * The given root is for the tree we are copying into, and path is a scratch
+ * path for use in this function (it should be released on entry and will be
+ * released on exit).
*
* If the key is already in the destination tree the existing item is
* overwritten. If the existing item isn't big enough, it is extended.