btrfs: fix comment referring to no longer existing btrfs_clean_tree_block()
PATCH 1/1 btrfs: fix comment referring to no longer existing btrfs_clean_tree_block()
From: Filipe Manana <[email protected]>
There's a comment at btrfs_init_new_buffer() that refers to a function named btrfs_clean_tree_block(), however the function was renamed to btrfs_clear_buffer_dirty() in commit 190a83391bc4 ("btrfs: rename btrfs_clean_tree_block to btrfs_clear_buffer_dirty"). So update the comment to refer to the current name.
--- fs/btrfs/extent-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/extent-tree.c +1 -1
@@ -4797,7 +4797,7 @@ btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, !test_bit(BTRFS_ROOT_RESET_LOCKDEP_CLASS, &root->state)) lockdep_owner =BTRFS_FS_TREE_OBJECTID ; -/* btrfs_clean_tree_block() accesses generation field. */ +/* btrfs_clear_buffer_dirty() accesses generation field. */ btrfs_set_header_generation (buf, trans->transid);/*
Signature · 1 line
2.34.1
LGTM
Quoted 9 lines · On Wed, May 17, 2023 at 12:03:44PM +0100, [email protected] wrote:
From: Filipe Manana <[email protected]>
There's a comment at
btrfs_init_new_buffer()that refers to a function namedbtrfs_clean_tree_block(), however the function was renamed tobtrfs_clear_buffer_dirty()in commit190a83391bc4("btrfs: renamebtrfs_clean_tree_blocktobtrfs_clear_buffer_dirty"). So update the comment to refer to the current name.Signed-off-by Filipe Manana <[email protected]>
Added to misc-next, thanks.