diff mbox series

btrfs: fix comment referring to no longer existing btrfs_clean_tree_block()

Message ID fc211eab020f42f28eec496aca5bbc4e58bc262a.1684320937.git.fdmanana@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: fix comment referring to no longer existing btrfs_clean_tree_block() | expand

Commit Message

Filipe Manana May 17, 2023, 11:03 a.m. UTC
From: Filipe Manana <fdmanana@suse.com>

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.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 fs/btrfs/extent-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Anand Jain May 19, 2023, 4:16 a.m. UTC | #1
LGTM

Reviewed-by: Anand Jain <anand.jain@oracle.com>
David Sterba May 22, 2023, 11:29 a.m. UTC | #2
On Wed, May 17, 2023 at 12:03:44PM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> 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.
> 
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Added to misc-next, thanks.
diff mbox series

Patch

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 581ddb24e113..4f7ac5a5d29e 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -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);
 
 	/*