#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/bio.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/compiler.h>
#include <linux/rbtree.h>
Go to the source code of this file.
|
| SHOW_FUNCTION (deadline_read_expire_show, dd->fifo_expire[READ], 1) |
|
| SHOW_FUNCTION (deadline_write_expire_show, dd->fifo_expire[WRITE], 1) |
|
| SHOW_FUNCTION (deadline_writes_starved_show, dd->writes_starved, 0) |
|
| SHOW_FUNCTION (deadline_front_merges_show, dd->front_merges, 0) |
|
| SHOW_FUNCTION (deadline_fifo_batch_show, dd->fifo_batch, 0) |
|
| STORE_FUNCTION (deadline_read_expire_store,&dd->fifo_expire[READ], 0, INT_MAX, 1) |
|
| STORE_FUNCTION (deadline_write_expire_store,&dd->fifo_expire[WRITE], 0, INT_MAX, 1) |
|
| STORE_FUNCTION (deadline_writes_starved_store,&dd->writes_starved, INT_MIN, INT_MAX, 0) |
|
| STORE_FUNCTION (deadline_front_merges_store,&dd->front_merges, 0, 1, 0) |
|
| STORE_FUNCTION (deadline_fifo_batch_store,&dd->fifo_batch, 0, INT_MAX, 0) |
|
| module_init (deadline_init) |
|
| module_exit (deadline_exit) |
|
| MODULE_AUTHOR ("Jens Axboe") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_DESCRIPTION ("deadline IO scheduler") |
|
#define SHOW_FUNCTION |
( |
|
__FUNC, |
|
|
|
__VAR, |
|
|
|
__CONV |
|
) |
| |
#define STORE_FUNCTION |
( |
|
__FUNC, |
|
|
|
__PTR, |
|
|
|
MIN, |
|
|
|
MAX, |
|
|
|
__CONV |
|
) |
| |
Value:
else
if (__data > (
MAX)) \
if (__CONV) \
else \
*(__PTR) = __data; \
}
Definition at line 397 of file deadline-iosched.c.
MODULE_AUTHOR |
( |
"Jens Axboe" |
| ) |
|
module_exit |
( |
deadline_exit |
| ) |
|
module_init |
( |
deadline_init |
| ) |
|
SHOW_FUNCTION |
( |
deadline_read_expire_show |
, |
|
|
dd-> |
fifo_expire[READ], |
|
|
1 |
|
|
) |
| |
SHOW_FUNCTION |
( |
deadline_write_expire_show |
, |
|
|
dd-> |
fifo_expire[WRITE], |
|
|
1 |
|
|
) |
| |
SHOW_FUNCTION |
( |
deadline_writes_starved_show |
, |
|
|
dd-> |
writes_starved, |
|
|
0 |
|
|
) |
| |
SHOW_FUNCTION |
( |
deadline_front_merges_show |
, |
|
|
dd-> |
front_merges, |
|
|
0 |
|
|
) |
| |
SHOW_FUNCTION |
( |
deadline_fifo_batch_show |
, |
|
|
dd-> |
fifo_batch, |
|
|
0 |
|
|
) |
| |
STORE_FUNCTION |
( |
deadline_read_expire_store |
, |
|
|
&dd-> |
fifo_expire[READ], |
|
|
0 |
, |
|
|
INT_MAX |
, |
|
|
1 |
|
|
) |
| |
STORE_FUNCTION |
( |
deadline_write_expire_store |
, |
|
|
&dd-> |
fifo_expire[WRITE], |
|
|
0 |
, |
|
|
INT_MAX |
, |
|
|
1 |
|
|
) |
| |
STORE_FUNCTION |
( |
deadline_writes_starved_store |
, |
|
|
&dd-> |
writes_starved, |
|
|
INT_MIN |
, |
|
|
INT_MAX |
, |
|
|
0 |
|
|
) |
| |
STORE_FUNCTION |
( |
deadline_front_merges_store |
, |
|
|
&dd-> |
front_merges, |
|
|
0 |
, |
|
|
1 |
, |
|
|
0 |
|
|
) |
| |
STORE_FUNCTION |
( |
deadline_fifo_batch_store |
, |
|
|
&dd-> |
fifo_batch, |
|
|
0 |
, |
|
|
INT_MAX |
, |
|
|
0 |
|
|
) |
| |