summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-02-06 15:08:19 +0100
committerSasha Levin <sashal@kernel.org>2024-03-26 18:18:32 -0400
commit2b931e7e0887a9bb3ef1e6618cbe07d67063f399 (patch)
treede0ae251d77d2e3a52c4d7fa4dfe53a36e4aa3ce /mm
parent8adb121fc8548a1cd9980231d26bb540d48e74d4 (diff)
downloadlinux-stable-2b931e7e0887a9bb3ef1e6618cbe07d67063f399.tar.gz
linux-stable-2b931e7e0887a9bb3ef1e6618cbe07d67063f399.tar.bz2
linux-stable-2b931e7e0887a9bb3ef1e6618cbe07d67063f399.zip
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 'mm')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 0d1ce70bce38..fb2daf89e2f2 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -310,7 +310,7 @@ static void shmem_disable_quotas(struct super_block *sb)
dquot_quota_off(sb, type);
}
-static struct dquot **shmem_get_dquots(struct inode *inode)
+static struct dquot __rcu **shmem_get_dquots(struct inode *inode)
{
return SHMEM_I(inode)->i_dquot;
}