]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit546ee7d9068af4653c756a24671a59b1fe6e6149
tree66e9c40c59b3b6f9ac89ddc0b59a16a1a96ebd58
parent4329118f77e9cd7ca519c32ab970800726c6ecde
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