From patchwork Wed May 17 11:03:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13244682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D73C3C77B7F for ; Wed, 17 May 2023 11:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230160AbjEQLEt (ORCPT ); Wed, 17 May 2023 07:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbjEQLEs (ORCPT ); Wed, 17 May 2023 07:04:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DADDC1988 for ; Wed, 17 May 2023 04:04:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B7D616358E for ; Wed, 17 May 2023 11:03:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEDD7C4339B for ; Wed, 17 May 2023 11:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684321427; bh=PKyDgRhl6g0mwpQN/xZBE/fREKmlMkZSLQ0LEDSrAWg=; h=From:To:Subject:Date:From; b=llcaKsEFYs1EBXkXfTKggz1fvUe4jyEUNXj8UcMfHBOu2jKddPDhe5QZZOjpIjOXn JUv5hR1Oe8sq0fyo/iI9edNcYNIgMo1ByFKhXZeqe4+mbQB7vwUMCGHbkfopiaQY3y Yb08QTV/dLiRjTggtjBX2VqDKsARQ559CKcK+eqZO5E7cLAoK/K4tiWD/6d4I5Fb09 VqeeiHcb7ylZRO4c8ySTLKXam8OseI/5FmU6Dib+BMpe6gyBlS0hzWuWRYQR+oAT9L 6Ux1+drgrRDFaTf7tJs2Wota/HXG7D/G/mePe9LSP0OTrShAbiTNDO8V/qRh3qWY3Q Ndl6BTgS6qpQQ== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs: fix comment referring to no longer existing btrfs_clean_tree_block() Date: Wed, 17 May 2023 12:03:44 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Filipe Manana 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 Reviewed-by: Anand Jain --- fs/btrfs/extent-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); /*