summaryrefslogtreecommitdiff
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-07-04 01:01:19 +0400
committerAlex Elder <elder@inktank.com>2012-10-01 23:30:53 +0400
commitcd892126c617b3837b6088bf6c097ad2def4de83 (patch)
tree769239813e121ed6191ca8d3db3dd8d23ec76f4d /drivers/devfreq
parent34b131849feb359f183907b467e9aa4d652b1baa (diff)
downloadlinux-cd892126c617b3837b6088bf6c097ad2def4de83.tar.xz
rbd: encapsulate code that gets snapshot info
Create a function that encapsulates looking up the name, size and features related to a given snapshot, which is indicated by its index in an rbd device's snapshot context array of snapshot ids. This interface will be used to hide differences between the format 1 and format 2 images. At the moment this (looking up the name anyway) is slightly less efficient than what's done currently, but we may be able to optimize this a bit later on by cacheing the last lookup if it proves to be a problem. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/devfreq')
0 files changed, 0 insertions, 0 deletions