diff options
author | Jan Kara <jack@suse.cz> | 2024-02-06 15:08:19 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2024-02-08 12:04:59 +0100 |
commit | ccb49011bb2ebfd66164dbf68c5bff48917bb5ef (patch) | |
tree | 28798f5cf34d1892d0957e4cbffe2b530d46235e /fs/ext2/super.c | |
parent | quota: Fix rcu annotations of inode dquot pointers (diff) | |
download | linux-ccb49011bb2ebfd66164dbf68c5bff48917bb5ef.tar.xz linux-ccb49011bb2ebfd66164dbf68c5bff48917bb5ef.zip |
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>
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 01f9addc8b1f..6d8587505cea 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -320,7 +320,7 @@ static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data, siz static ssize_t ext2_quota_write(struct super_block *sb, int type, const char *data, size_t len, loff_t off); static int ext2_quota_on(struct super_block *sb, int type, int format_id, const struct path *path); -static struct dquot **ext2_get_dquots(struct inode *inode) +static struct dquot __rcu **ext2_get_dquots(struct inode *inode) { return EXT2_I(inode)->i_dquot; } |