diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-06-30 14:42:08 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-07-03 07:21:14 -0400 |
commit | da9cbc87395308a21465bd25441297bbba0477e1 (patch) | |
tree | fabea3326cea434c0011fa00f3eb57854162117c | |
parent | b984679efe1a616ec4ac919dba08286d71593900 (diff) |
block: blkdev.h cleanup, move iocontext stuff to iocontext.h
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | include/linux/blkdev.h | 17 | ||||
-rw-r--r-- | include/linux/iocontext.h | 18 | ||||
-rw-r--r-- | kernel/exit.c | 1 | ||||
-rw-r--r-- | kernel/fork.c | 1 |
4 files changed, 20 insertions, 17 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4a9ed45270f..443df75d2cd 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -33,12 +33,6 @@ struct sg_io_hdr; | |||
33 | #define BLKDEV_MIN_RQ 4 | 33 | #define BLKDEV_MIN_RQ 4 |
34 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ | 34 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ |
35 | 35 | ||
36 | int put_io_context(struct io_context *ioc); | ||
37 | void exit_io_context(void); | ||
38 | struct io_context *get_io_context(gfp_t gfp_flags, int node); | ||
39 | struct io_context *alloc_io_context(gfp_t gfp_flags, int node); | ||
40 | void copy_io_context(struct io_context **pdst, struct io_context **psrc); | ||
41 | |||
42 | struct request; | 36 | struct request; |
43 | typedef void (rq_end_io_fn)(struct request *, int); | 37 | typedef void (rq_end_io_fn)(struct request *, int); |
44 | 38 | ||
@@ -981,17 +975,6 @@ static inline long nr_blockdev_pages(void) | |||
981 | return 0; | 975 | return 0; |
982 | } | 976 | } |
983 | 977 | ||
984 | static inline void exit_io_context(void) | ||
985 | { | ||
986 | } | ||
987 | |||
988 | struct io_context; | ||
989 | static inline int put_io_context(struct io_context *ioc) | ||
990 | { | ||
991 | return 1; | ||
992 | } | ||
993 | |||
994 | |||
995 | #endif /* CONFIG_BLOCK */ | 978 | #endif /* CONFIG_BLOCK */ |
996 | 979 | ||
997 | #endif | 980 | #endif |
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index 2b7a1187cb2..08b987bccf8 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h | |||
@@ -99,4 +99,22 @@ static inline struct io_context *ioc_task_link(struct io_context *ioc) | |||
99 | return NULL; | 99 | return NULL; |
100 | } | 100 | } |
101 | 101 | ||
102 | #ifdef CONFIG_BLOCK | ||
103 | int put_io_context(struct io_context *ioc); | ||
104 | void exit_io_context(void); | ||
105 | struct io_context *get_io_context(gfp_t gfp_flags, int node); | ||
106 | struct io_context *alloc_io_context(gfp_t gfp_flags, int node); | ||
107 | void copy_io_context(struct io_context **pdst, struct io_context **psrc); | ||
108 | #else | ||
109 | static inline void exit_io_context(void) | ||
110 | { | ||
111 | } | ||
112 | |||
113 | struct io_context; | ||
114 | static inline int put_io_context(struct io_context *ioc) | ||
115 | { | ||
116 | return 1; | ||
117 | } | ||
118 | #endif | ||
119 | |||
102 | #endif | 120 | #endif |
diff --git a/kernel/exit.c b/kernel/exit.c index 8f6185e69b6..ceb25878283 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/personality.h> | 13 | #include <linux/personality.h> |
14 | #include <linux/tty.h> | 14 | #include <linux/tty.h> |
15 | #include <linux/mnt_namespace.h> | 15 | #include <linux/mnt_namespace.h> |
16 | #include <linux/iocontext.h> | ||
16 | #include <linux/key.h> | 17 | #include <linux/key.h> |
17 | #include <linux/security.h> | 18 | #include <linux/security.h> |
18 | #include <linux/cpu.h> | 19 | #include <linux/cpu.h> |
diff --git a/kernel/fork.c b/kernel/fork.c index 19908b26cf8..b71ccd09fc8 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/sem.h> | 23 | #include <linux/sem.h> |
24 | #include <linux/file.h> | 24 | #include <linux/file.h> |
25 | #include <linux/fdtable.h> | 25 | #include <linux/fdtable.h> |
26 | #include <linux/iocontext.h> | ||
26 | #include <linux/key.h> | 27 | #include <linux/key.h> |
27 | #include <linux/binfmts.h> | 28 | #include <linux/binfmts.h> |
28 | #include <linux/mman.h> | 29 | #include <linux/mman.h> |