New old patch - buffers.c

Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de)
Tue, 20 Feb 1996 12:07:18 +0100


This is the first of my patches originally meant for Linux-1.2.13.
But most of them can still be applied.

This one fixes a wrong comment that is there since 1.2 at least.

diff -c /usr/src/linux/fs/buffer.c /tmp/buffer.c
*** /usr/src/linux/fs/buffer.c Tue Feb 20 08:08:45 1996
--- /tmp/buffer.c Tue Feb 20 11:10:52 1996
***************
*** 1894,1903 ****
if (!suser())
return -EPERM;

if (func == 1)
return sync_old_buffers();

- /* Basically func 1 means read param 1, 2 means write param 1, etc
*/
if (func >= 2) {
i = (func-2) >> 1;
if (i < 0 || i >= N_PARAM)
--- 1894,1907 ----
if (!suser())
return -EPERM;

+ /* Basically func 0 means start, 1 means write dirty buffers,
+ * func >= 2 means read or write param (func - 2) / 2, where
+ * even numbers read the kernel value, while odd numbers set
+ * the corresponding value.
+ */
if (func == 1)
return sync_old_buffers();

if (func >= 2) {
i = (func-2) >> 1;
if (i < 0 || i >= N_PARAM)