xfs: reduce the absurdly large log operation count
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Apr 2022 01:38:14 +0000 (18:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Apr 2022 17:25:33 +0000 (10:25 -0700)
commit4ecf9e7c69edcb8f5b98df471dd026419b881d2b
tree66e9c40c59b3b6f9ac89ddc0b59a16a1a96ebd58
parent918247ce541995dba05391cf14d6061cf0844866
xfs: reduce the absurdly large log operation count

Back in the early days of reflink and rmap development I set the
transaction reservation sizes to be overly generous for rmap+reflink
filesystems, and a little under-generous for rmap-only filesystems.

Since we don't need *eight* transaction rolls to handle three new log
intent items, decrease the logcounts to what we actually need, and amend
the shadow reservation computation function to reflect what we used to
do so that the minimum log size doesn't change.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_log_rlimit.c
fs/xfs/libxfs/xfs_trans_resv.c
fs/xfs/libxfs/xfs_trans_resv.h