summaryrefslogtreecommitdiff
path: root/fs/jfs/jfs_incore.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-02-06 17:08:19 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:17:03 +0300
commitd4d40e12197f2239ed39829204c6482d7242419a (patch)
treed47d3d64f10879d9faffedfd5594d393ea93313a /fs/jfs/jfs_incore.h
parent4772b81037c15dd8699c5ff6b04760490a87e438 (diff)
downloadlinux-d4d40e12197f2239ed39829204c6482d7242419a.tar.xz
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>
Diffstat (limited to 'fs/jfs/jfs_incore.h')
-rw-r--r--fs/jfs/jfs_incore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/jfs_incore.h b/fs/jfs/jfs_incore.h
index dd4264aa9bed..10934f9a11be 100644
--- a/fs/jfs/jfs_incore.h
+++ b/fs/jfs/jfs_incore.h
@@ -92,7 +92,7 @@ struct jfs_inode_info {
} link;
} u;
#ifdef CONFIG_QUOTA
- struct dquot *i_dquot[MAXQUOTAS];
+ struct dquot __rcu *i_dquot[MAXQUOTAS];
#endif
u32 dev; /* will die when we get wide dev_t */
struct inode vfs_inode;