]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: enable missing functions
authorEric Sandeen <sandeen@sandeen.net>
Thu, 3 Dec 2009 19:21:51 +0000 (13:21 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 3 Dec 2009 19:21:51 +0000 (13:21 -0600)
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@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
io/init.c
io/io.h

index 6539a559d1323a5915a3f2f11beffa16955970c4..f8fc25d861c4d00da43e51d89006f81304fa089d 100644 (file)
--- 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 43754cac8633486d08fcebbed6968c5c2598a10a..630897d4412449678165f1273aae09859f80a1fd 100644 (file)
--- 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