xfs
[Top] [All Lists]

[PATCH] xfs_io: enable missing functions

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs_io: enable missing functions
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Wed, 02 Dec 2009 12:13:56 -0600
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
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@xxxxxxxxxxx>
---

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

<Prev in Thread] Current Thread [Next in Thread>