diff options
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 879e56cd8498..224485863c54 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -726,6 +726,9 @@ xfs_mount_free( ASSERT(!mutex_is_locked(&mp->m_scrub_freeze)); mutex_destroy(&mp->m_scrub_freeze); +#ifdef CONFIG_XFS_RT + xfs_drain_free(&mp->m_rt_intents); +#endif kmem_free(mp); } @@ -1968,6 +1971,10 @@ static int xfs_init_fs_context( if (!mp) return -ENOMEM; +#ifdef CONFIG_XFS_RT + xfs_drain_init(&mp->m_rt_intents); +#endif + spin_lock_init(&mp->m_sb_lock); spin_lock_init(&mp->m_agirotor_lock); INIT_RADIX_TREE(&mp->m_perag_tree, GFP_ATOMIC); |