From: Filipe Manana Date: Mon, 19 Jun 2023 16:21:49 +0000 (+0100) Subject: btrfs: add comment to struct btrfs_fs_info::dirty_cowonly_roots X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=08eb2ad9db0a1f65786ab9133d6fe1683c0647c8;p=linux.git 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 --- diff --git a/fs/btrfs/fs.h b/fs/btrfs/fs.h index 396e2a4634807..203d2a2678287 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;