summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-writecache.c
diff options
context:
space:
mode:
authorHuaisheng Ye <yehs1@lenovo.com>2019-04-25 21:31:19 +0800
committerMike Snitzer <snitzer@redhat.com>2019-04-26 11:32:50 -0400
commit08a8e804620bbb41d06d144441d19c589bb17aa4 (patch)
tree0a557d4def0627bc6f01e52174ae72069ff385ac /drivers/md/dm-writecache.c
parent81bc6d150ace6250503b825d9d0c10f7bbd24095 (diff)
downloadlinux-stable-08a8e804620bbb41d06d144441d19c589bb17aa4.tar.gz
linux-stable-08a8e804620bbb41d06d144441d19c589bb17aa4.tar.bz2
linux-stable-08a8e804620bbb41d06d144441d19c589bb17aa4.zip
dm writecache: remove unused member page_offset in writeback_struct
The stucture member page_offset in writeback_struct never has been used actually. Remove it. Signed-off-by: Huaisheng Ye <yehs1@lenovo.com> Acked-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-writecache.c')
-rw-r--r--drivers/md/dm-writecache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c
index cfbbfbc028f9..ddf1732dae50 100644
--- a/drivers/md/dm-writecache.c
+++ b/drivers/md/dm-writecache.c
@@ -190,7 +190,6 @@ struct writeback_struct {
struct dm_writecache *wc;
struct wc_entry **wc_list;
unsigned wc_list_n;
- unsigned page_offset;
struct page *page;
struct wc_entry *wc_list_inline[WB_LIST_INLINE];
struct bio bio;
@@ -1481,7 +1480,6 @@ static void __writecache_writeback_pmem(struct dm_writecache *wc, struct writeba
bio->bi_end_io = writecache_writeback_endio;
bio_set_dev(bio, wc->dev->bdev);
bio->bi_iter.bi_sector = read_original_sector(wc, e);
- wb->page_offset = PAGE_SIZE;
if (max_pages <= WB_LIST_INLINE ||
unlikely(!(wb->wc_list = kmalloc_array(max_pages, sizeof(struct wc_entry *),
GFP_NOIO | __GFP_NORETRY |