mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-02 09:46:21 +00:00
Shutdown data after trans
The data_info struct holds the data allocator that is filled by transactions as they commit. We have to free it after we've shutdown transactions. It's more like the forest in this regard so we move its desctruction down by the forest to group similar behaviour. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -245,7 +245,6 @@ static void scoutfs_put_super(struct super_block *sb)
|
||||
|
||||
trace_scoutfs_put_super(sb);
|
||||
|
||||
scoutfs_data_destroy(sb);
|
||||
scoutfs_srch_destroy(sb);
|
||||
|
||||
scoutfs_unlock(sb, sbi->rid_lock, SCOUTFS_LOCK_WRITE);
|
||||
@@ -258,6 +257,7 @@ static void scoutfs_put_super(struct super_block *sb)
|
||||
scoutfs_inode_destroy(sb);
|
||||
scoutfs_item_destroy(sb);
|
||||
scoutfs_forest_destroy(sb);
|
||||
scoutfs_data_destroy(sb);
|
||||
|
||||
scoutfs_quorum_destroy(sb);
|
||||
scoutfs_server_destroy(sb);
|
||||
|
||||
Reference in New Issue
Block a user