summaryrefslogtreecommitdiff
tag namerefactor-has-eofblocks-5.13_2021-03-18 (3704b3ef1869681d4d3e76ebb5b8052e5d01c318)
tag date2021-03-18 15:26:30 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 4b35f7a5dc...
xfs: make xfs_can_free_eofblocks a predicate
The two patches in this set reorganize the responsibilities between xfs_can_free_eofblocks and xfs_free_eofblocks so that the first becomes a true predicate, and the second becomes a simple update function. The goal is to be able to use the predicate to decide if a linked but unopened inode has speculative post-EOF preallocations and hence must go through the extra inactivation step. This requires a slight change in behavior of the background block gc workers, which will try to take the IOLOCK before calling the predicate.