]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: kill incore snap_names_len
authorAlex Elder <elder@inktank.com>
Fri, 24 Aug 2012 04:22:06 +0000 (23:22 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:49 +0000 (14:30 -0500)
commitae70829a06379a4d60fab601d65876a3fa6700b4
tree455a9d2e5e9eba5fc892d9cf40fca5d046f24ad6
parent62b2cec32bef9126c7c180a5cea9d17b46c5b1ac
rbd: kill incore snap_names_len

The only thing the on-disk snap_names_len field is needed is to
size the buffer allocated to hold a copy of the snapshot names
for an rbd image.

So don't bother saving it in the in-core rbd_image_header structure.
Just use a local variable to hold the required buffer size while
it's needed.

Move the code that actually copies the snapshot names up closer
to where the required length is saved.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
drivers/block/rbd.c