Skip to content

Commit

Permalink
btrfs: add comment to struct btrfs_fs_info::dirty_cowonly_roots
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Filipe Manana authored and David Sterba committed Jun 19, 2023
1 parent babebf0 commit 08eb2ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08eb2ad

Please sign in to comment.