aboutsummaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-05-06 09:51:30 -0500
committerAlex Elder <elder@inktank.com>2013-05-08 17:00:41 -0500
commit30d60ba2f258da24b91edb880338c7178f901de9 (patch)
treeb0b39018e786a342da043517005e0201711053f3 /mm/slab.h
parent662518b128c27def65e9af4bea2b56a1e04b3251 (diff)
rbd: simplify rbd_dev_v1_probe()
An rbd_dev structure's fields are all zero-filled for an initial probe, so there's no need to explicitly zero the parent_spec and parent_overlap fields in rbd_dev_v1_probe(). Removing these assignments makes rbd_dev_v1_probe() *almost* trivial. Move the dout() message that announces discovery of an image into rbd_dev_image_probe(), generalize to support images in either format and only show it if an image is fully discovered. This highlights that are some unnecessary cleanups in the error path for rbd_dev_v1_probe(), so they can be removed. Now rbd_dev_v1_probe() *is* a trivial wrapper function. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions