mirror of
https://gitee.com/bianbu-linux/linux-6.6-fh
synced 2025-04-24 20:27:07 -04:00
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: b9ba6f94b2
("quota: remove dqptr_sem")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e45e8aa2b7
commit
42954c3745
16 changed files with 16 additions and 17 deletions
|
@ -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;
|
||||
|
|
|
@ -824,7 +824,7 @@ out:
|
|||
return len - towrite;
|
||||
}
|
||||
|
||||
static struct dquot **jfs_get_dquots(struct inode *inode)
|
||||
static struct dquot __rcu **jfs_get_dquots(struct inode *inode)
|
||||
{
|
||||
return JFS_IP(inode)->i_dquot;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue