summaryrefslogtreecommitdiff
path: root/include/linux/pipe_fs_i.h
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-06-03 14:54:39 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-06-03 14:54:39 +0200
commitff9da691c0498ff81fdd014e7a0731dab2337dac (patch)
tree429dc9ea36c9927954ed3a32f03d28730e693c8b /include/linux/pipe_fs_i.h
parent419f8367ea37e5adc5d95479e8fd5554b92b49fe (diff)
downloadlwn-ff9da691c0498ff81fdd014e7a0731dab2337dac.tar.gz
lwn-ff9da691c0498ff81fdd014e7a0731dab2337dac.zip
pipe: change /proc/sys/fs/pipe-max-pages to byte sized interface
This changes the interface to be based on bytes instead. The API matches that of F_SETPIPE_SZ in that it rounds up the passed in size so that the resulting page array is a power-of-2 in size. The proc file is renamed to /proc/sys/fs/pipe-max-size to reflect this change. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include/linux/pipe_fs_i.h')
-rw-r--r--include/linux/pipe_fs_i.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
index 16de3933c45e..445796945ac9 100644
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
@@ -139,7 +139,9 @@ void pipe_lock(struct pipe_inode_info *);
void pipe_unlock(struct pipe_inode_info *);
void pipe_double_lock(struct pipe_inode_info *, struct pipe_inode_info *);
-extern unsigned int pipe_max_pages;
+extern unsigned int pipe_max_size, pipe_min_size;
+int pipe_proc_fn(struct ctl_table *, int, void __user *, size_t *, loff_t *);
+
/* Drop the inode semaphore and wait for a pipe event, atomically */
void pipe_wait(struct pipe_inode_info *pipe);