]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 8 Apr 2015 02:57:50 +0000 (12:57 +1000)
commit2254c573d4af86a2a362d412a2afb69b864ed300
treecac734b6f24ca827fff8ab4cc3b3d882a5e9dd7b
parent771663e7e3ac9b61c515119076126e89fa355670
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