Darrick J. Wong b1de6fc752 xfs: fix log reservation overflows when allocating large rt extents
Omar Sandoval reported that a 4G fallocate on the realtime device causes
filesystem shutdowns due to a log reservation overflow that happens when
we log the rtbitmap updates.  Factor rtbitmap/rtsummary updates into the
the tr_write and tr_itruncate log reservation calculation.

"The following reproducer results in a transaction log overrun warning
for me:

    mkfs.xfs -f -r rtdev=/dev/vdc -d rtinherit=1 -m reflink=0 /dev/vdb
    mount -o rtdev=/dev/vdc /dev/vdb /mnt
    fallocate -l 4G /mnt/foo

Reported-by: Omar Sandoval <osandov@osandov.com>
Tested-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
2019-12-17 11:19:28 -08:00
..
2019-11-07 13:00:53 -08:00
2019-11-22 08:17:10 -08:00
2019-11-07 13:00:53 -08:00
2018-06-06 14:17:53 -07:00
2019-11-13 11:13:45 -08:00
2019-12-02 14:46:22 -08:00
2019-11-07 13:00:53 -08:00
2019-06-12 08:37:40 -07:00
2019-06-28 19:30:43 -07:00