From 27fd43cb31253e6b47812b4ba17768ed613b28e9 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 16 Apr 2013 09:52:10 +0200 Subject: [PATCH] infra: remove obsolete black interface The backing file should not be exposed from the brick blackbox. --- kernel/mars.h | 1 - kernel/mars_aio.c | 1 - kernel/mars_bio.c | 2 +- kernel/mars_sio.c | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/mars.h b/kernel/mars.h index 6c146c15..254d5700 100644 --- a/kernel/mars.h +++ b/kernel/mars.h @@ -166,7 +166,6 @@ struct mars_info { loff_t current_size; int transfer_order; int transfer_size; - struct file *backing_file; }; // brick stuff diff --git a/kernel/mars_aio.c b/kernel/mars_aio.c index 42aa8111..c18802d6 100644 --- a/kernel/mars_aio.c +++ b/kernel/mars_aio.c @@ -894,7 +894,6 @@ static int aio_get_info(struct aio_output *output, struct mars_info *info) MARS_DBG("correcting file length from %lld to %lld\n", info->current_size, output->mf->mf_max); info->current_size = output->mf->mf_max; } - info->backing_file = file; return 0; } diff --git a/kernel/mars_bio.c b/kernel/mars_bio.c index b8a0c6fe..e3cc3707 100644 --- a/kernel/mars_bio.c +++ b/kernel/mars_bio.c @@ -227,7 +227,7 @@ static int bio_get_info(struct bio_output *output, struct mars_info *info) brick->total_size = inode->i_size; info->current_size = brick->total_size; MARS_DBG("determined device size = %lld\n", info->current_size); - info->backing_file = brick->mf->mf_filp; + done: return status; } diff --git a/kernel/mars_sio.c b/kernel/mars_sio.c index d1cd7855..ce464f6f 100644 --- a/kernel/mars_sio.c +++ b/kernel/mars_sio.c @@ -482,7 +482,6 @@ static int sio_get_info(struct sio_output *output, struct mars_info *info) info->current_size = i_size_read(file->f_mapping->host); MARS_DBG("determined file size = %lld\n", info->current_size); - info->backing_file = file; return 0; }