]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: kill rbd_image_header->total_snaps
authorAlex Elder <elder@inktank.com>
Thu, 30 Aug 2012 19:42:15 +0000 (14:42 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commit9ee1cf142ab5aca2a9aec57220df9e637003b0bd
tree37bf444e7bb006a7643050c6b33000797a76bae0
parentefc672eb6958b5d38c5d4609807c2ec7d29274c6
rbd: kill rbd_image_header->total_snaps

The "total_snaps" field in an rbd header structure is never any
different from the value of "num_snaps" stored within a snapshot
context.  Avoid any confusion by just using the value held within
the snapshot context, and get rid of the "total_snaps" field.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c