diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 05:00:18 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 05:00:18 -0800 |
| commit | 98fabcaab54ecd736cfc0f290e9e05cffb0294a0 (patch) | |
| tree | a05ebdf248b04581271c1ed998be38a69c33a710 /include/linux | |
| parent | 9c27c441c924a4220b7578ff21f8eec29d3eb24e (diff) | |
[PATCH] aio sysctl parms
From: Janet Morgan <janetmor@us.ibm.com>
It looks like aio_nr and aio_max_nr were intended to be sysctl parameters.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/aio.h | 3 | ||||
| -rw-r--r-- | include/linux/sysctl.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index 54507489d10d..f4c91615a503 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h @@ -167,6 +167,7 @@ static inline struct kiocb *list_kiocb(struct list_head *h) } /* for sysctl: */ -extern unsigned aio_max_nr, aio_max_size, aio_max_pinned; +extern atomic_t aio_nr; +extern unsigned aio_max_nr; #endif /* __LINUX__AIO_H */ diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index d535235ca245..b192b7f018f5 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -620,6 +620,8 @@ enum FS_LEASE_TIME=15, /* int: maximum time to wait for a lease break */ FS_DQSTATS=16, /* disc quota usage statistics */ FS_XFS=17, /* struct: control xfs parameters */ + FS_AIO_NR=18, /* current system-wide number of aio requests */ + FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ }; /* /proc/sys/fs/quota/ */ |
