aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_dir2_sf.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-12-11 13:19:07 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-12-17 11:19:28 -0800
commitb1de6fc7520fe12949c070af0e8c0e4044cd3420 (patch)
treecc0344349ff164c80715efecd102d281bc255b91 /fs/xfs/libxfs/xfs_dir2_sf.c
parentxfs: stabilize insert range start boundary to avoid COW writeback race (diff)
downloadlinux-dev-b1de6fc7520fe12949c070af0e8c0e4044cd3420.tar.xz
linux-dev-b1de6fc7520fe12949c070af0e8c0e4044cd3420.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions