]> git.itanic.dy.fi Git - linux-stable/commit
quota: Check presence of quota operation structures instead of ->quota_read and ...
authorJan Kara <jack@suse.cz>
Tue, 25 Jul 2023 14:45:06 +0000 (16:45 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 9 Aug 2023 07:15:39 +0000 (09:15 +0200)
commit86be6b8bd834bece87e6adc5313cb41e1ba7fe81
treeb40e2bf16ba26dbfaead671ec27653d7ae5c030a
parent71480663b751de1bdfafaa2f668ceabaea78b68b
quota: Check presence of quota operation structures instead of ->quota_read and ->quota_write callbacks

Currently we check whether superblock has ->quota_read and ->quota_write
operations to check whether filesystem supports quotas. However for
example for shmfs we will not read or write dquots so check whether
quota operations are set in the superblock instead.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Message-Id: <20230725144510.253763-4-cem@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/quota/dquot.c