diff options
author | 2023-06-19 17:21:49 +0100 | |
---|---|---|
committer | 2023-06-19 20:14:44 +0200 | |
commit | 08eb2ad9db0a1f65786ab9133d6fe1683c0647c8 (patch) | |
tree | 0b6880bfd2b7d0634eff06859535cd3d30a304b4 | |
parent | btrfs: fix race when deleting free space root from the dirty cow roots list (diff) | |
download | wireguard-linux-08eb2ad9db0a1f65786ab9133d6fe1683c0647c8.tar.xz wireguard-linux-08eb2ad9db0a1f65786ab9133d6fe1683c0647c8.zip |
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 <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |