* [PATCH] xfs_io: enable missing functions
@ 2009-12-02 18:13 Eric Sandeen
2009-12-03 17:00 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2009-12-02 18:13 UTC (permalink / raw)
To: xfs-oss
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>
---
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
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs_io: enable missing functions
2009-12-02 18:13 [PATCH] xfs_io: enable missing functions Eric Sandeen
@ 2009-12-03 17:00 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2009-12-03 17:00 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-oss
On Wed, Dec 02, 2009 at 12:13:56PM -0600, Eric Sandeen wrote:
> 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.
Hmm, maybe Nathan still has an idea what it's for, probably some IRIX
build.
Anyway, the madvise and mincore wireup looks good. Note entirely sure
what they do in xfs_io, though - they're VM syscalls not filesystem and
don't cause I/O normally.
Reviewed-by: Christoph Hellwig <hch@lst.de>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-03 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 18:13 [PATCH] xfs_io: enable missing functions Eric Sandeen
2009-12-03 17:00 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox