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)
commit474ef7ce832d471148f63a9d07f67fc5564834f1
tree2741be10d318adfde0e044f4c31eb2b94840c2cf
parente88a36ec961b8c1899c59c5e4ae35a318c0209d3
rbd: only reset capacity when pointing to head

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