From patchwork Mon Jun 19 16:21:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13284807 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 C4DBFEB64DC for ; Mon, 19 Jun 2023 16:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjFSQWD (ORCPT ); Mon, 19 Jun 2023 12:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231403AbjFSQWB (ORCPT ); Mon, 19 Jun 2023 12:22:01 -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 14B48E60 for ; Mon, 19 Jun 2023 09:22:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E8EB60CEC for ; Mon, 19 Jun 2023 16:22:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82356C433C9 for ; Mon, 19 Jun 2023 16:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687191720; bh=pojtDB3XZu2yHxdORW20bVueq03oxwBlLxjihHRH0DE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kPdl8HF1wA2ljZIerZIGs39M5jFTjQs5nyMcN4+DJL3sDJXV9yfO7xKxg4VD2dOvG y5KGcA7qF8Qh/PT3nQUN/ClrPauDUqMf2a8TPU0eUnj3pY3/jbg7IDjrTSzvIJOkrG G9U56lhFqsDj/S0gc82VZ2ZhV4CYaw83bckqYO1JbCp1MlRIZ+cyvPUWm1c6vRzU04 n/nzWPsyseAzX6fxhEUueT8dYWD/tXv1npan9VA/hrAArxBH0HbPE/axpTXQWVWT5A Ix5XH1jg/V79OlyAPv89ppeSNWjW1pO3GEn4lrSB8EbqNtJ/yvbeG+KhzeoJoJ3Bud vioKbTEYtZY7A== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH 3/4] btrfs: add comment to struct btrfs_fs_info::dirty_cowonly_roots Date: Mon, 19 Jun 2023 17:21:49 +0100 Message-Id: <21a8b6c652a627a554c3f87f0df66e1ba808bc92.1687185583.git.fdmanana@suse.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Filipe Manana Add a comment to struct btrfs_fs_info::dirty_cowonly_roots to mention that struct btrfs_fs_info::trans_lock is the lock that protects that list. Signed-off-by: Filipe Manana --- fs/btrfs/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/fs.h b/fs/btrfs/fs.h index 396e2a463480..203d2a267828 100644 --- a/fs/btrfs/fs.h +++ b/fs/btrfs/fs.h @@ -576,6 +576,7 @@ struct btrfs_fs_info { s32 dirty_metadata_batch; s32 delalloc_batch; + /* Protected by 'trans_lock'. */ struct list_head dirty_cowonly_roots; struct btrfs_fs_devices *fs_devices;