+18
−14
Loading
stable inclusion from stable-v6.6.54 commit 971d03cd457a1c701bf4cc0d299f8a48d0f49037 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAZ3K2 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=971d03cd457a1c701bf4cc0d299f8a48d0f49037 -------------------------------- [ 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> Conflicts: fs/btrfs/btrfs_inode.h Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>