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.27-rc3-devel/drivers/md/dm-snap.c =================================================================== --- linux-2.6.27-rc3-devel.orig/drivers/md/dm-snap.c 2008-08-15 15:41:50.000000000 +0200 +++ linux-2.6.27-rc3-devel/drivers/md/dm-snap.c 2008-08-15 15:42:06.000000000 +0200 @@ -514,12 +514,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";