]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:59 +0000 (16:29 +0200)
commit971d03cd457a1c701bf4cc0d299f8a48d0f49037
tree2fb87bdff5ec2cb108a3d984b450657e5d5dbf0d
parenta0cc053ba1e21c1b8acaa0c3a8eaefa2970cd2a6
btrfs: update comment for struct btrfs_inode::lock

[ Upstream commit 68539bd0e73b457f88a9d00cabb6533ec8582dc9 ]

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>
Stable-dep-of: 7ee85f5515e8 ("btrfs: fix race setting file private on concurrent lseek using same fd")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/btrfs_inode.h