]> git.baikalelectronics.ru Git - kernel.git/commit
md: don't require sync_min to be a multiple of chunk_size.
authorNeilBrown <neilb@suse.de>
Mon, 23 Mar 2015 06:36:38 +0000 (17:36 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 21 Apr 2015 22:00:40 +0000 (08:00 +1000)
commitfaaf152b75adb43d9156f510dbccb1266a2bdaac
tree2248b7342bdd5c1ceb5c1a991e04ab3c30149cd4
parent796bb7a441c3acccfab82f87379420208be8bd51
md: don't require sync_min to be a multiple of chunk_size.

There is really no need for sync_min to be a multiple of
chunk_size, and values read from here often aren't.
That means you cannot read a value and expect to be able
to write it back later.

So remove the chunk_size check, and round down to a multiple
of 4K, to be sure everything works with 4K-sector devices.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c