pipe: change /proc/sys/fs/pipe-max-pages to byte sized interface
commitff9da691c0498ff81fdd014e7a0731dab2337dac
authorJens Axboe <jaxboe@fusionio.com>
Thu, 3 Jun 2010 12:54:39 +0000 (3 14:54 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 3 Jun 2010 12:54:39 +0000 (3 14:54 +0200)
tree429dc9ea36c9927954ed3a32f03d28730e693c8b
parent419f8367ea37e5adc5d95479e8fd5554b92b49fe
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