diff options
author | Christoph Hellwig <hch@lst.de> | 2024-10-14 09:04:51 +0300 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2024-10-22 14:37:18 +0300 |
commit | aa67ec6a25617e36eba4fb28a88159f500a6cac6 (patch) | |
tree | 7bec443b6eabddd4908fdb9af9c24d1dc87250f5 /fs/efivarfs | |
parent | 82742f8c3f1a93787a05a00aca50c2a565231f84 (diff) | |
download | linux-aa67ec6a25617e36eba4fb28a88159f500a6cac6.tar.xz |
xfs: merge the perag freeing helpers
There is no good reason to have two different routines for freeing perag
structures for the unmount and error cases. Add two arguments to specify
the range of AGs to free to xfs_free_perag, and use that to replace
xfs_free_unused_perag_range.
The addition RCU grace period for the error case is harmless, and the
extra check for the AG to actually exist is not required now that the
callers pass the exact known allocated range.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs/efivarfs')
0 files changed, 0 insertions, 0 deletions