diff options
author | Alex Elder <elder@inktank.com> | 2012-07-19 17:49:18 +0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-31 05:15:42 +0400 |
commit | 78dc447d3ca3701206a1dd813c901556a3fad451 (patch) | |
tree | 244df3c3450069bc09a39fea87a634f93e911227 /fs/nfsd | |
parent | 75fe9e19816d6ed3e90f1bd3b741f99bf030e848 (diff) | |
download | linux-78dc447d3ca3701206a1dd813c901556a3fad451.tar.xz |
rbd: preserve snapc->seq in rbd_header_set_snap()
In rbd_header_set_snap(), there is logic to make the snap context's
seq field get set to a particular snapshot id, or 0 if there is no
snapshot for the rbd image.
This seems to be an artifact of how the current snapshot id for an
rbd_dev was recorded before the rbd_dev->snap_id field began to be
used for that purpose.
There's no need to update the value of snapc->seq here any more, so
stop doing it. Tidy up a few local variables in that function
while we're at it.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions