rbd: only reset capacity when pointing to head
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 22 Nov 2011 01:13:54 +0000 (17:13 -0800)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:37 +0000 (18:15 -0700)
Snapshots cannot be resized, and the new capacity of head should not
be reflected by the snapshot.

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

Simple merge