]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: track transaction block reservation usage like the kernel
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 4 Oct 2018 19:21:01 +0000 (14:21 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 4 Oct 2018 19:21:01 +0000 (14:21 -0500)
commit41ab92026b3ff0062f6d34169ef00ad29ff670b5
treeff7f1d96dda90a9bbb7f961eb36cd6953e14fe08
parent225e4bb2ddff2f4752b2c04c55a0152c146ecc1f
libxfs: track transaction block reservation usage like the kernel

Currently, block reservations in userspace transactions are not carried
over across transaction rolls.  This will lead to ENOSPC failures inside
libxfs code which checks for reservation overruns in an upcoming patch
that borrows the bmbt repair code from the kernel because it makes
extensive use of transaction rolling.

Therefore, port t_blk_res_used from the kernel so that block
reservations work the same way in userspace.

[sandeen: tweaks to backport before libxfs updates]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/trans.c