]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: shut down the filesystem if we screw up quota reservation
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 04:26:21 +0000 (09:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:07:38 +0000 (12:07 +0200)
commit6002c68cb307f1ffe73cb607f42cfbd6e4b4abbb
treed647b2c32e8984c0a5c26282a6a75d44cdc4212d
parenteff63200f8aa240532dd9a004962c3b08dccf9c1
xfs: shut down the filesystem if we screw up quota reservation

commit f0282941741ecb2fce8546979e0946df9cd940b8 upstream.

If we ever screw up the quota reservations enough to trip the
assertions, something's wrong with the quota code.  Shut down the
filesystem when this happens, because this is corruption.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_trans_dquot.c