Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
da9cbc87
Commit
da9cbc87
authored
Jun 30, 2008
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
block: blkdev.h cleanup, move iocontext stuff to iocontext.h
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
b984679e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
17 deletions
+20
-17
include/linux/blkdev.h
include/linux/blkdev.h
+0
-17
include/linux/iocontext.h
include/linux/iocontext.h
+18
-0
kernel/exit.c
kernel/exit.c
+1
-0
kernel/fork.c
kernel/fork.c
+1
-0
No files found.
include/linux/blkdev.h
View file @
da9cbc87
...
...
@@ -33,12 +33,6 @@ struct sg_io_hdr;
#define BLKDEV_MIN_RQ 4
#define BLKDEV_MAX_RQ 128
/* Default maximum */
int
put_io_context
(
struct
io_context
*
ioc
);
void
exit_io_context
(
void
);
struct
io_context
*
get_io_context
(
gfp_t
gfp_flags
,
int
node
);
struct
io_context
*
alloc_io_context
(
gfp_t
gfp_flags
,
int
node
);
void
copy_io_context
(
struct
io_context
**
pdst
,
struct
io_context
**
psrc
);
struct
request
;
typedef
void
(
rq_end_io_fn
)(
struct
request
*
,
int
);
...
...
@@ -981,17 +975,6 @@ static inline long nr_blockdev_pages(void)
return
0
;
}
static
inline
void
exit_io_context
(
void
)
{
}
struct
io_context
;
static
inline
int
put_io_context
(
struct
io_context
*
ioc
)
{
return
1
;
}
#endif
/* CONFIG_BLOCK */
#endif
include/linux/iocontext.h
View file @
da9cbc87
...
...
@@ -99,4 +99,22 @@ static inline struct io_context *ioc_task_link(struct io_context *ioc)
return
NULL
;
}
#ifdef CONFIG_BLOCK
int
put_io_context
(
struct
io_context
*
ioc
);
void
exit_io_context
(
void
);
struct
io_context
*
get_io_context
(
gfp_t
gfp_flags
,
int
node
);
struct
io_context
*
alloc_io_context
(
gfp_t
gfp_flags
,
int
node
);
void
copy_io_context
(
struct
io_context
**
pdst
,
struct
io_context
**
psrc
);
#else
static
inline
void
exit_io_context
(
void
)
{
}
struct
io_context
;
static
inline
int
put_io_context
(
struct
io_context
*
ioc
)
{
return
1
;
}
#endif
#endif
kernel/exit.c
View file @
da9cbc87
...
...
@@ -13,6 +13,7 @@
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/mnt_namespace.h>
#include <linux/iocontext.h>
#include <linux/key.h>
#include <linux/security.h>
#include <linux/cpu.h>
...
...
kernel/fork.c
View file @
da9cbc87
...
...
@@ -23,6 +23,7 @@
#include <linux/sem.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/iocontext.h>
#include <linux/key.h>
#include <linux/binfmts.h>
#include <linux/mman.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment