quota: Properly annotate i_dquot arrays with __rcu
authorJan Kara <jack@suse.cz>
Tue, 6 Feb 2024 14:08:19 +0000 (15:08 +0100)
committerJan Kara <jack@suse.cz>
Thu, 8 Feb 2024 11:04:59 +0000 (12:04 +0100)
commitccb49011bb2ebfd66164dbf68c5bff48917bb5ef
tree28798f5cf34d1892d0957e4cbffe2b530d46235e
parent179b8c97ebf63429589f5afeba59a181fe70603e
quota: Properly annotate i_dquot arrays with __rcu

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>
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