diff options
author | Alex Elder <elder@inktank.com> | 2012-08-31 17:29:55 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-10 07:43:39 -0700 |
commit | 117973fb4c91f3fd913127577e9f71b3aa6cb556 (patch) | |
tree | 30720002351972e6c227f8e9d2d6376021693d09 /mm/swap.c | |
parent | 9478554ae5d21d65e948a3eff4ee2a8ad30d70e9 (diff) | |
download | kernel_goldelico_gta04-117973fb4c91f3fd913127577e9f71b3aa6cb556.zip kernel_goldelico_gta04-117973fb4c91f3fd913127577e9f71b3aa6cb556.tar.gz kernel_goldelico_gta04-117973fb4c91f3fd913127577e9f71b3aa6cb556.tar.bz2 |
rbd: define rbd_dev_v2_refresh()
Define a new function rbd_dev_v2_refresh() to update/refresh the
snapshot context for a format version 2 rbd image. This function
will update anything that is not fixed for the life of an rbd
image--at the moment this is mainly the snapshot context and (for
a base mapping) the size.
Update rbd_refresh_header() so it selects which function to use
based on the image format.
Rename __rbd_refresh_header() to be rbd_dev_v1_refresh()
to be consistent with the naming of its version 2 counterpart.
Similarly rename rbd_refresh_header() to be rbd_dev_refresh().
Unrelated--we use rbd_image_format_valid() here. Delete the other
use of it, which was primarily put in place to ensure that function
was referenced at the time it was defined.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions