summaryrefslogtreecommitdiffstats
path: root/kernel/loop_file_fmt_qcow_cache.h
diff options
context:
space:
mode:
authorManuel Bentele2020-09-09 17:32:57 +0200
committerManuel Bentele2020-09-16 07:37:56 +0200
commit55d94d412d4269d93e9c71a2ce59d1b9631b8957 (patch)
tree27ef4827a02635d2c9dd84b2949079b424a3a90d /kernel/loop_file_fmt_qcow_cache.h
parentAdded CMake files to build xloop kernel modules and xlosetup utility (diff)
downloadxloop-55d94d412d4269d93e9c71a2ce59d1b9631b8957.tar.gz
xloop-55d94d412d4269d93e9c71a2ce59d1b9631b8957.tar.xz
xloop-55d94d412d4269d93e9c71a2ce59d1b9631b8957.zip
Renamed files from loop to xloop and generate package only in Release mode
Diffstat (limited to 'kernel/loop_file_fmt_qcow_cache.h')
-rw-r--r--kernel/loop_file_fmt_qcow_cache.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/kernel/loop_file_fmt_qcow_cache.h b/kernel/loop_file_fmt_qcow_cache.h
deleted file mode 100644
index d2f1010..0000000
--- a/kernel/loop_file_fmt_qcow_cache.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * xloop_file_fmt_qcow_cache.h
- *
- * Ported QCOW2 implementation of the QEMU project (GPL-2.0):
- * L2/refcount table cache for the QCOW2 format.
- *
- * The copyright (C) 2010 of the original code is owned by
- * Kevin Wolf <kwolf@redhat.com>
- *
- * Copyright (C) 2019 Manuel Bentele <development@manuel-bentele.de>
- */
-
-#ifndef _LINUX_XLOOP_FILE_FMT_QCOW_CACHE_H
-#define _LINUX_XLOOP_FILE_FMT_QCOW_CACHE_H
-
-#include "loop_file_fmt.h"
-
-struct xloop_file_fmt_qcow_cache_table {
- s64 offset;
- u64 lru_counter;
- int ref;
- bool dirty;
-};
-
-struct xloop_file_fmt_qcow_cache {
- struct xloop_file_fmt_qcow_cache_table *entries;
- struct xloop_file_fmt_qcow_cache *depends;
- int size;
- int table_size;
- bool depends_on_flush;
- void *table_array;
- u64 lru_counter;
- u64 cache_clean_lru_counter;
-};
-
-extern struct xloop_file_fmt_qcow_cache *xloop_file_fmt_qcow_cache_create(
- struct xloop_file_fmt *xlo_fmt,
- int num_tables,
- unsigned table_size);
-
-extern void xloop_file_fmt_qcow_cache_destroy(struct xloop_file_fmt *xlo_fmt);
-
-extern int xloop_file_fmt_qcow_cache_get(struct xloop_file_fmt *xlo_fmt,
- u64 offset,
- void **table);
-
-extern void xloop_file_fmt_qcow_cache_put(struct xloop_file_fmt *xlo_fmt,
- void **table);
-
-#endif