]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: move extent busy tree initialization to xfs_initialize_perag
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:02 +0000 (13:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:09 +0000 (13:18 -0700)
commit6d13a62f9a0f247cb9d55e2769c55c795168ee4a
tree72f7c20317083aa069c6f6bf88d62049fa6adb28
parent4c3ae8f1891adb9ec4fd1f7e418ba583c4356b24
xfs: move extent busy tree initialization to xfs_initialize_perag

Move the per-AG busy extent tree initialization to the per-ag structure
initialization since we don't want online repair to leak the old tree.
We only deconstruct the tree at unmount time, so this should be safe.
This also enables us to eliminate the commented out initialization in
the xfsprogs libxfs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/xfs_mount.c