]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:18 +0000 (08:51 -0800)
commit7272b7d3db9160716acce4ae387cf98fd24ff820
tree99cc7c5c8493cfdc0415039a69c48d2c051b846a
parent95268c46ace4492b924abf6e82c6974c152bee29
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>
(cherry picked from commit 474ef7ce832d471148f63a9d07f67fc5564834f1)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/rbd.c