[PATCH] xfs_io: enable missing functions

Eric Sandeen sandeen at sandeen.net
Wed Dec 2 12:13:56 CST 2009


madvise and mincore were never hooked up to init_commands().

Further, there is no HAVE_INJECT test in the configure scripts,
so just remove that test (and keep the existing unconditional
inject_init() prototype.

Signed-off-by: Eric Sandeen <sandeen at sandeen.net>
---

diff --git a/io/init.c b/io/init.c
index 6539a55..f8fc25d 100644
--- a/io/init.c
+++ b/io/init.c
@@ -64,6 +64,8 @@ init_commands(void)
 	help_init();
 	imap_init();
 	inject_init();
+	madvise_init();
+	mincore_init();
 	mmap_init();
 	open_init();
 	parent_init();
diff --git a/io/io.h b/io/io.h
index 43754ca..630897d 100644
--- a/io/io.h
+++ b/io/io.h
@@ -112,12 +112,6 @@ extern void		fadvise_init(void);
 #define fadvise_init()	do { } while (0)
 #endif
 
-#ifdef HAVE_INJECT
-extern void		inject_init(void);
-#else
-#define inject_init()	do { } while (0)
-#endif
-
 #ifdef HAVE_RESBLKS
 extern void		resblks_init(void);
 #else




More information about the xfs mailing list