Commit f42d4365 authored by Dean Roehrich's avatar Dean Roehrich Committed by Nathan Scott

[XFS] Change things to use new version of xfs_dm_init/xfs_dm_exit

SGI Modid: xfs-linux:xfs-kern:173206a
Signed-off-by: nathans@sgi.com
parent 7ab21cf8
...@@ -835,12 +835,12 @@ init_xfs_fs( void ) ...@@ -835,12 +835,12 @@ init_xfs_fs( void )
vn_init(); vn_init();
xfs_init(); xfs_init();
uuid_init(); uuid_init();
vfs_initdmapi();
vfs_initquota(); vfs_initquota();
error = register_filesystem(&xfs_fs_type); error = register_filesystem(&xfs_fs_type);
if (error) if (error)
goto undo_register; goto undo_register;
XFS_DM_INIT(&xfs_fs_type);
return 0; return 0;
undo_register: undo_register:
...@@ -857,7 +857,7 @@ STATIC void __exit ...@@ -857,7 +857,7 @@ STATIC void __exit
exit_xfs_fs( void ) exit_xfs_fs( void )
{ {
vfs_exitquota(); vfs_exitquota();
vfs_exitdmapi(); XFS_DM_EXIT(&xfs_fs_type);
unregister_filesystem(&xfs_fs_type); unregister_filesystem(&xfs_fs_type);
xfs_cleanup(); xfs_cleanup();
pagebuf_terminate(); pagebuf_terminate();
......
/* /*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as * under the terms of version 2 of the GNU General Public License as
...@@ -92,6 +92,12 @@ extern void xfs_qm_exit(void); ...@@ -92,6 +92,12 @@ extern void xfs_qm_exit(void);
# define XFS_TRACE_STRING # define XFS_TRACE_STRING
#endif #endif
#ifdef CONFIG_XFS_DMAPI
# define XFS_DMAPI_STRING "dmapi support, "
#else
# define XFS_DMAPI_STRING
#endif
#ifdef DEBUG #ifdef DEBUG
# define XFS_DBG_STRING "debug" # define XFS_DBG_STRING "debug"
#else #else
...@@ -103,6 +109,7 @@ extern void xfs_qm_exit(void); ...@@ -103,6 +109,7 @@ extern void xfs_qm_exit(void);
XFS_REALTIME_STRING \ XFS_REALTIME_STRING \
XFS_BIGFS_STRING \ XFS_BIGFS_STRING \
XFS_TRACE_STRING \ XFS_TRACE_STRING \
XFS_DMAPI_STRING \
XFS_DBG_STRING /* DBG must be last */ XFS_DBG_STRING /* DBG must be last */
#define LINVFS_GET_VFS(s) \ #define LINVFS_GET_VFS(s) \
......
/* /*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as * under the terms of version 2 of the GNU General Public License as
...@@ -199,7 +199,14 @@ typedef enum { ...@@ -199,7 +199,14 @@ typedef enum {
extern struct bhv_vfsops xfs_dmops; extern struct bhv_vfsops xfs_dmops;
extern int dmapi_init(void); #ifdef CONFIG_XFS_DMAPI
extern void dmapi_uninit(void); void xfs_dm_init(struct file_system_type *);
void xfs_dm_exit(struct file_system_type *);
#define XFS_DM_INIT(fstype) xfs_dm_init(fstype)
#define XFS_DM_EXIT(fstype) xfs_dm_exit(fstype)
#else
#define XFS_DM_INIT()
#define XFS_DM_EXIT()
#endif
#endif /* __XFS_DMAPI_H__ */ #endif /* __XFS_DMAPI_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment