summaryrefslogtreecommitdiff
tag namedefrag-freespace_2021-10-22 (14297b4b21d5d4dd3188e27cc45702828f526e3f)
tag date2021-10-22 16:45:46 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 5ada217abe...
xfs: defragment free space
These patches contain experimental code to enable userspace to defragment the free space in a filesystem. Two purposes are imagined for this functionality: clearing space at the end of a filesystem before shrinking it, and clearing free space in anticipation of making a large allocation. The first patch adds a new fallocate mode that allows userspace to allocate free space from the filesystem into a file. The goal here is to allow the filesystem shrink process to prevent allocation from a certain part of the filesystem while a free space defragmenter evacuates all the files from the doomed part of the filesystem. The second patch amends the online repair system to allow the sysadmin to forcibly rebuild metadata structures, even if they're not corrupt. Without adding an ioctl to move metadata btree blocks, this is the only way to dislodge metadata. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmFzTSoACgkQ+H93GTRK tOvRIhAAhAKr98mkJ1JFAhqPJGJZbu4XBVgK6V9/DV/GAbkiZH5PdROOxJRjYwrU +xS4wo9F4QGp9zeffW905xQauuzrdSxy6r8aWJNmKZ9BUmpvHi94J8RI7vyJKAlY ByPXxhBuFQJeWeE/xDe+wOlX1nYn9/LubflqE/EZPu9PWZfATpU4golaiBt806uN 96rrVI7zCKLrPAXbwluQQTooZDcrNumWSPV2PpmkOSoUCUjmUlGxPwrX4uk1orol 2evvJ2V8NM9r1/Pjdapqen7iMROpX0pKgR4pOZo2wO9LIJVz4fxrnuy4+Rq/uhEG F/Zk9hdqc+Ikcgtuop7i/x3+bNsstIzxczYHNsKMftCSYoG8STYjYNa9DiGIQGyE uhKW2c8FqaMWGQhUCQVa1k+7bEdtsYk8HuCLK5EfG4ZJ0oZltUG3K60mhLRNP5kH BWERj0CLHWo4tOcoIHeTX0EStnkgShJFGcksreLfqlN6XrqJPy87ouQCc++kOO+f s7hIDBrY9LHGltSxe2QGJSmcwM4vAYdjvtRtt9qX63tmnFHNoOYvIzWmLSESa7Ce pS2Bn/k3bp84/9WMuvCzn5UubQ/wj3qYnfyIbn0w0dOh7QWwA3B9b6MjZBveqcjt BZmyWC99XQJU8806fwZsKdOr+Ec2gkiNKx19e/0DzvKU8JheViw= =1IMa -----END PGP SIGNATURE-----