summaryrefslogtreecommitdiff
path: root/net/unix/diag.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-24 04:22:06 (GMT)
committerAlex Elder <elder@inktank.com>2012-10-01 19:30:49 (GMT)
commitf785cc1dbe90b561b8ded92df4fe9732bdc54859 (patch)
tree455a9d2e5e9eba5fc892d9cf40fca5d046f24ad6 /net/unix/diag.c
parent58c17b0e1b2278824aedc5d1201f6a43a38d6a48 (diff)
downloadlinux-f785cc1dbe90b561b8ded92df4fe9732bdc54859.tar.xz
rbd: kill incore snap_names_len
The only thing the on-disk snap_names_len field is needed is to size the buffer allocated to hold a copy of the snapshot names for an rbd image. So don't bother saving it in the in-core rbd_image_header structure. Just use a local variable to hold the required buffer size while it's needed. Move the code that actually copies the snapshot names up closer to where the required length is saved. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'net/unix/diag.c')
0 files changed, 0 insertions, 0 deletions