From 59379d4f06f0c7c03a46ff6eebacbc5687488d00 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Mon, 7 Aug 2017 12:48:11 +0800 Subject: [PATCH] blobfs: Remove next pointer in cache_buffer Change-Id: I4797e3900eb425f8cddec1543a4612d4d98e07a6 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/372990 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp --- lib/blobfs/blobfs.c | 3 --- lib/blobfs/tree.h | 1 - 2 files changed, 4 deletions(-) diff --git a/lib/blobfs/blobfs.c b/lib/blobfs/blobfs.c index acc049b8d..c22b08617 100644 --- a/lib/blobfs/blobfs.c +++ b/lib/blobfs/blobfs.c @@ -1642,9 +1642,6 @@ cache_append_buffer(struct spdk_file *file) return NULL; } - if (file->last != NULL) { - file->last->next = last; - } file->last = last; return last; diff --git a/lib/blobfs/tree.h b/lib/blobfs/tree.h index ae4237629..0a9ba62a3 100644 --- a/lib/blobfs/tree.h +++ b/lib/blobfs/tree.h @@ -36,7 +36,6 @@ struct cache_buffer { uint8_t *buf; - struct cache_buffer *next; uint64_t offset; uint32_t buf_size; uint32_t bytes_filled;