xfs: ensure that we don't crash when freeing the ag reservations on a ro mount

Christoph Hellwig discovered that the kernel crashed trying to free
the refcount btree per-ag reservation on a ro mount (because we don't
create the reservation except for rw mounts and ro->rw remounts).  So,
test this to make sure we never do that again. :)

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Darrick J. Wong
2016-02-09 23:09:15 -08:00
parent 130d7f0d1e
commit 4562a0f6d4
3 changed files with 60 additions and 0 deletions
+1
View File
@@ -244,6 +244,7 @@
244 auto quota quick
245 auto quick clone
246 auto quick clone
247 auto quick clone
250 auto quick rw prealloc metadata
252 auto quick prealloc
253 auto quick