From 08eb2ad9db0a1f65786ab9133d6fe1683c0647c8 Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Mon, 19 Jun 2023 17:21:49 +0100 Subject: btrfs: add comment to struct btrfs_fs_info::dirty_cowonly_roots 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 Signed-off-by: David Sterba --- fs/btrfs/fs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/btrfs/fs.h') 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; -- cgit v1.2.3-73-gaa49b