summaryrefslogtreecommitdiff
tag namedefrag-freespace_2022-10-14 (19ae9b03bcb30b56e9193a6657dd50f605106a93)
tag date2022-10-14 14:19:27 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 329347290f...
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. Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNJ0l8ACgkQ+H93GTRK tOtyoxAAn/TiIhsq1z9X5XfMEjazN0g7XnCEkyWutJN9JyGyNlm/N2CZq/BArN1E WHJEJIv4iYqRQaTkqpDVUQw9qAhJzkf8m6zegWhNVeIVMk6Y8WIHIBKvtsjXnlui 1hj63/3QxDH4iVketLEFqOvMdGcnoRhenAnMt4SF4QzSmkMkyOrMkd0YNmGZlCG/ ynWn+eaKDtCDCscHwnDolquBOMhWPxhRNcO/hARRlFJ85sfBHLzwbp7JpZVPg97M PlPeIymyuhSBdyVaDJRl1KlaNSj2SucYVo0UzT1eiCWg4ptRD6UI03UaTejbICRj 14qUSSacfkJM6EXXjG93scVmOmsUbelVGbnePtQIUXfNbb5HJHvgDbJiF/SfG1pp tAegb6C/1Qi7FbCAsUAM/4T5DmBEd0RU4arLy+evhx4P5Zgv2uBezPAZeCAeUeGM Hv0BqoeIeGTUEnKkkZ1nQgePuLhQcDzObnc6ETYrvPepj4lwy1UgLTkrjcZXrLHm qg/EEWtgEq1vHbYaxp+RUqxkknYZNz6j6ilxb4NDGmBYiDt1KKKI3bCCIKppdWpG 36mK90J2E5780AArJ/IlneJeDUB0QoTjNwY+Kzi52AiMilx4eKhSDil7IfbTFmIP MqETcQKZZ3akg5+QuP+BqNGDjEQ5rST50tL25dDguESKknR7O4Y= =fIgv -----END PGP SIGNATURE-----