]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: refactor manage_zones()
authorEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 21:50:48 +0000 (16:50 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 21:50:48 +0000 (16:50 -0500)
commit7a326ce0f58b5effe85f29bac7d021e38f97b09d
treeed778b9b34445cf1010001ae47caa9ff742e5833
parentb0956cebe8449a8a7a2933dbadea8f6c337c0247
libxfs: refactor manage_zones()

It's bizarre to have manage_zones() both set up and tear down zones.
It's even more bizarre to have xfs_dir_startup() buried in there.

Refactor init/destory into 2 functions, and call xfs_dir_startup()
separately from zone init similar to what kernelspace does.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c