Allow chunksize smaller than pagesize. When reading on-disk structure, the kernel doesn't check pagesize>=chunksize condition anyway (and it was already fixed to behave correctly if chunksize is smaller), so there is no need to check it for user-supplied parameter. Signed-off-by: Mikulas Patocka --- drivers/md/dm-snap.c | 6 ------ 1 file changed, 6 deletions(-) Index: linux-2.6.26-devel/drivers/md/dm-snap.c =================================================================== --- linux-2.6.26-devel.orig/drivers/md/dm-snap.c 2008-07-14 20:04:55.000000000 +0200 +++ linux-2.6.26-devel/drivers/md/dm-snap.c 2008-07-14 20:05:05.000000000 +0200 @@ -511,12 +511,6 @@ static int set_chunk_size(struct dm_snap return 0; } - /* - * Chunk size must be multiple of page size. Silently - * round up if it's not. - */ - chunk_size = round_up(chunk_size, PAGE_SIZE >> 9); - /* Check chunk_size is a power of 2 */ if (!is_power_of_2(chunk_size)) { *error = "Chunk size is not a power of 2";