]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix WARN_ON on XFS module unload
authorAndrew Morton <akpm@osdl.org>
Sat, 8 May 2004 03:43:30 +0000 (20:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 8 May 2004 03:43:30 +0000 (20:43 -0700)
From: Christoph Hellwig <hch@lst.de>

This one is a little funny.  The SGI trees don't show this issue because dmapi
and quota are separate modules so they must be unloaded before xfs_fs_exit can
be called at all.

So let's move the exitcalls for them in mainline first to simulate that
behaviour.

fs/xfs/linux/xfs_super.c

index 5878bf65b3182ddc242415e50505e401821d1f21..bbaf61beea024d82994a8ff114b4798f8d045aac 100644 (file)
@@ -833,10 +833,10 @@ undo_inodecache:
 STATIC void __exit
 exit_xfs_fs( void )
 {
-       unregister_filesystem(&xfs_fs_type);
-       xfs_cleanup();
        vfs_exitquota();
        vfs_exitdmapi();
+       unregister_filesystem(&xfs_fs_type);
+       xfs_cleanup();
        pagebuf_terminate();
        destroy_inodecache();
        ktrace_uninit();