]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: update comment for struct btrfs_inode::lock
authorFilipe Manana <fdmanana@suse.com>
Wed, 4 Oct 2023 10:38:53 +0000 (11:38 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:18 +0000 (16:44 +0200)
commit68539bd0e73b457f88a9d00cabb6533ec8582dc9
treefd5ced727076e46425504fce2a228b708f6f0d6e
parent5ca1949b79f3b02215f1c075bf178fceeadda352
btrfs: update comment for struct btrfs_inode::lock

Update the comment for the lock named "lock" in struct btrfs_inode because
it does not mention that the fields "delalloc_bytes", "defrag_bytes",
"csum_bytes", "outstanding_extents" and "disk_i_size" are also protected
by that lock.

Also add a comment on top of each field protected by this lock to mention
that the lock protects them.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h