Files
linux-apfs/Documentation
Tiezhu Yang a37376f326 Documentation: fix wrong value in md.txt
In the current Documentation/md.txt, the lower limit value of
stripe_cache_size is 16 and the default value is 128, but when
I update kernel to the latest mainline version and RAID5 array
is created by mdadm, then execute the following commands, it
shows an error and a difference respectively.

1) set stripe_cache_size to 16
[root@localhost ~]# echo 16 > /sys/block/md0/md/stripe_cache_size
bash: echo: write error: Invalid argument
2) read the default value of stripe_cache_size
[root@localhost ~]# cat /sys/block/md0/md/stripe_cache_size
256

I read drivers/md/raid5.c and find the following related code:
1) in function 'raid5_set_cache_size':
if (size <= 16 || size > 32768)
	return -EINVAL;
2) #define NR_STRIPES		256

So the lower limit value of stripe_cache_size should be 17 and
the default value should be 256.

Signed-off-by: Tiezhu Yang <kernelpatch@126.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2016-06-23 08:08:36 -06:00
..
2016-04-27 10:23:44 +02:00
2016-06-03 13:31:37 -06:00
2016-05-08 11:27:44 +02:00
2016-05-11 22:37:54 +02:00
2016-05-30 13:38:51 +03:00
2016-03-25 16:37:42 -07:00
2016-03-22 15:36:02 -07:00
2016-05-17 14:48:04 +02:00
2016-04-28 08:02:36 -06:00