]> git.itanic.dy.fi Git - linux-stable/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:17:03 +0000 (18:17 -0400)
commitd4d40e12197f2239ed39829204c6482d7242419a
treed47d3d64f10879d9faffedfd5594d393ea93313a
parent4772b81037c15dd8699c5ff6b04760490a87e438
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