]> git.baikalelectronics.ru Git - kernel.git/commit
pipe: change /proc/sys/fs/pipe-max-pages to byte sized interface
authorJens Axboe <jaxboe@fusionio.com>
Thu, 3 Jun 2010 12:54:39 +0000 (14:54 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 3 Jun 2010 12:54:39 +0000 (14:54 +0200)
commit485bf57d1304894980d3246a6d68eec3462f98b9
tree429dc9ea36c9927954ed3a32f03d28730e693c8b
parent65aa33d1a99dbcceb36eb4d335541dcbf98dc51f
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>
fs/pipe.c
include/linux/pipe_fs_i.h
kernel/sysctl.c