~ubuntu-branches/ubuntu/precise/linux-ti-omap/precise

« back to all changes in this revision

Viewing changes to ubuntu/dm-raid4-5/dm-raid4-5.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader, Amit Kucheria
  • Date: 2010-03-23 18:05:12 UTC
  • Revision ID: james.westby@ubuntu.com-20100323180512-iavj906ocnphdubp
Tags: 2.6.33-500.3
[ Amit Kucheria ]

* [Config] Fix the debug package name to end in -dbgsym
* SAUCE: Add the ubuntu/ drivers to omap
* SAUCE: Re-export the symbols for aufs
* [Config] Enable AUFS and COMPCACHE

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2006  Red Hat GmbH
 
3
 *
 
4
 * Module Author: Heinz Mauelshagen (Mauelshagen@RedHat.com)
 
5
 *
 
6
 * This file is released under the GPL.
 
7
 *
 
8
 */
 
9
 
 
10
#ifndef _DM_RAID45_H
 
11
#define _DM_RAID45_H
 
12
 
 
13
/* Factor out to dm.h! */
 
14
#define STR_LEN(ptr, str) ptr, str, strlen(ptr)
 
15
 
 
16
enum lock_type { RAID45_EX, RAID45_SHARED };
 
17
 
 
18
struct dmraid45_locking_type {
 
19
        /* Request a lock on a stripe. */
 
20
        void* (*lock)(sector_t key, enum lock_type type);
 
21
 
 
22
        /* Release a lock on a stripe. */
 
23
        void (*unlock)(void *lock_handle);
 
24
 
 
25
};
 
26
 
 
27
#endif