Skip to content

Commit 08eb2ad

Browse files
fdmananakdave
authored andcommitted
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>
1 parent babebf0 commit 08eb2ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/btrfs/fs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ struct btrfs_fs_info {
576576
s32 dirty_metadata_batch;
577577
s32 delalloc_batch;
578578

579+
/* Protected by 'trans_lock'. */
579580
struct list_head dirty_cowonly_roots;
580581

581582
struct btrfs_fs_devices *fs_devices;

0 commit comments

Comments
 (0)