]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: fix chunksize sector conversion
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 24 Apr 2008 20:41:50 +0000 (21:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 25 Apr 2008 12:26:34 +0000 (13:26 +0100)
commit86943f346b21804f79b52d107c6c05bba666883c
tree8233d321e025c0fa057ad4067ab6f4e865d74fe0
parent1eaee6824c439fd369a08ee4553f68bbf715de44
dm snapshot: fix chunksize sector conversion

If a snapshot has a smaller chunksize than the page size the
conversion to pages currently returns 0 instead of 1, causing:
kernel BUG in mempool_resize.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: stable@kernel.org
drivers/md/dm-exception-store.c