]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: restore speculative_cow_prealloc_lifetime sysctl
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Feb 2021 17:14:47 +0000 (09:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 24 Feb 2021 18:16:08 +0000 (10:16 -0800)
commit5984a4e3538f97b0878e6e4356194290b0ffcf61
tree9ed5e011f20b241c8e5367968edc0a9db01c4451
parentc41b5481d5377f65cb2874ef43b2e8f037c30071
xfs: restore speculative_cow_prealloc_lifetime sysctl

In commit b90731047afc I tried to get rid of the undocumented cow gc
lifetime knob.  The knob's function was never documented and it now
doesn't really have a function since eof and cow gc have been
consolidated.

Regrettably, xfs/231 relies on it and regresses on for-next.  I did not
succeed at getting far enough through fstests patch review for the fixup
to land in time.

Restore the sysctl knob, document what it did (does?), put it on the
deprecation schedule, and rip out a redundant function.

Fixes: b90731047afc ("xfs: consolidate the eofblocks and cowblocks workers")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Documentation/admin-guide/xfs.rst
fs/xfs/xfs_sysctl.c