git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: PPC: Expose level based interrupt cap
[pandora-kernel.git]
/
include
/
linux
/
device-mapper.h
diff --git
a/include/linux/device-mapper.h
b/include/linux/device-mapper.h
index
1381cd9
..
2970022
100644
(file)
--- a/
include/linux/device-mapper.h
+++ b/
include/linux/device-mapper.h
@@
-22,7
+22,7
@@
typedef enum { STATUSTYPE_INFO, STATUSTYPE_TABLE } status_type_t;
union map_info {
void *ptr;
unsigned long long ll;
union map_info {
void *ptr;
unsigned long long ll;
- unsigned
flush_request
;
+ unsigned
target_request_nr
;
};
/*
};
/*
@@
-174,12
+174,18
@@
struct dm_target {
* A number of zero-length barrier requests that will be submitted
* to the target for the purpose of flushing cache.
*
* A number of zero-length barrier requests that will be submitted
* to the target for the purpose of flushing cache.
*
- * The request number will be placed in union map_info->
flush_request
.
+ * The request number will be placed in union map_info->
target_request_nr
.
* It is a responsibility of the target driver to remap these requests
* to the real underlying devices.
*/
unsigned num_flush_requests;
* It is a responsibility of the target driver to remap these requests
* to the real underlying devices.
*/
unsigned num_flush_requests;
+ /*
+ * The number of discard requests that will be submitted to the
+ * target. map_info->request_nr is used just like num_flush_requests.
+ */
+ unsigned num_discard_requests;
+
/* target specific data */
void *private;
/* target specific data */
void *private;
@@
-392,6
+398,12
@@
void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
#define dm_array_too_big(fixed, obj, num) \
((num) > (UINT_MAX - (fixed)) / (obj))
#define dm_array_too_big(fixed, obj, num) \
((num) > (UINT_MAX - (fixed)) / (obj))
+/*
+ * Sector offset taken relative to the start of the target instead of
+ * relative to the start of the device.
+ */
+#define dm_target_offset(ti, sector) ((sector) - (ti)->begin)
+
static inline sector_t to_sector(unsigned long n)
{
return (n >> SECTOR_SHIFT);
static inline sector_t to_sector(unsigned long n)
{
return (n >> SECTOR_SHIFT);