]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
quota: Properly annotate i_dquot arrays with __rcu
authorJan Kara <jack@suse.cz>
Tue, 6 Feb 2024 14:08:19 +0000 (15:08 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:46 +0000 (18:19 -0400)
commit42954c374534f37dd25a4096b52d28e46dc1f8ba
tree26f0acb10b260ff61d5ed3d62e2f68d275136709
parente45e8aa2b70ac521a12ae0cb76bd8a94f6ea03da
quota: Properly annotate i_dquot arrays with __rcu

[ Upstream commit ccb49011bb2ebfd66164dbf68c5bff48917bb5ef ]

Dquots pointed to from i_dquot arrays in inodes are protected by
dquot_srcu. Annotate them as such and change .get_dquots callback to
return properly annotated pointer to make sparse happy.

Fixes: b9ba6f94b238 ("quota: remove dqptr_sem")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
16 files changed:
fs/ext2/ext2.h
fs/ext2/super.c
fs/ext4/ext4.h
fs/ext4/super.c
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/jfs/jfs_incore.h
fs/jfs/super.c
fs/ocfs2/inode.h
fs/ocfs2/super.c
fs/quota/dquot.c
fs/reiserfs/reiserfs.h
fs/reiserfs/super.c
include/linux/fs.h
include/linux/shmem_fs.h
mm/shmem.c