Commit 25d1280a authored by Dean Roehrich's avatar Dean Roehrich Committed by Nathan Scott

[XFS] Prep for using dmapi code outside of xfs tree

SGI Modid: xfs-linux:xfs-kern:170510a
parent b5e60fe2
......@@ -836,6 +836,7 @@ exit_xfs_fs( void )
vfs_exitquota();
vfs_exitdmapi();
unregister_filesystem(&xfs_fs_type);
XFS_DM_EXIT();
xfs_cleanup();
pagebuf_terminate();
destroy_inodecache();
......
......@@ -92,6 +92,12 @@ extern void xfs_qm_exit(void);
# define XFS_TRACE_STRING
#endif
#ifdef CONFIG_XFS_DMAPI
# define XFS_DMAPI_STRING "dmapi support, "
#else
# define XFS_DMAPI_STRING
#endif
#ifdef XFSDEBUG
# define XFS_DBG_STRING "debug"
#else
......@@ -103,6 +109,7 @@ extern void xfs_qm_exit(void);
XFS_REALTIME_STRING \
XFS_BIGFS_STRING \
XFS_TRACE_STRING \
XFS_DMAPI_STRING \
XFS_DBG_STRING /* DBG must be last */
#define LINVFS_GET_VFS(s) \
......
......@@ -199,7 +199,14 @@ typedef enum {
extern struct bhv_vfsops xfs_dmops;
extern int dmapi_init(void);
extern void dmapi_uninit(void);
#if defined(CONFIG_XFS_DMAPI) || defined(CONFIG_XFS_DMAPI_MODULE)
void xfs_dm_init(void);
void xfs_dm_exit(void);
#define XFS_DM_INIT() xfs_dm_init()
#define XFS_DM_EXIT() xfs_dm_exit()
#else
#define XFS_DM_INIT()
#define XFS_DM_EXIT()
#endif
#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