]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid 1 supports TRIM
authorShaohua Li <shli@fusionio.com>
Sat, 18 Aug 2012 00:03:23 +0000 (10:03 +1000)
committerNeilBrown <neilb@suse.de>
Sat, 18 Aug 2012 00:03:23 +0000 (10:03 +1000)
commit3cd986f277db5ff324fbd7c36a7aa50c06852bcf
treeeaca14f8eed4c5bea9a20c7692c72bb7b4f041f8
parent7260735bc525820fce0ff4dd96908d5a248c5b12
md: raid 1 supports TRIM

This makes md raid 1 support TRIM.
If one disk supports discard and another not, or one has discard_zero_data and
another not, there could be inconsistent between data from such disks. But this
should not matter, discarded data is useless. This will add extra copy in rebuild
though.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c