~ubuntu-branches/ubuntu/precise/aufs/precise

« back to all changes in this revision

Viewing changes to fs/aufs/branch.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2007-06-04 15:17:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070604151703-ur9mjtbbpwoga2y6
Tags: 0+20070605-1
* New upstream snapshot
* Remove unionctl

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: branch.h,v 1.29 2007/04/30 05:44:26 sfjro Exp $ */
 
19
/* $Id: branch.h,v 1.30 2007/05/14 03:41:51 sfjro Exp $ */
20
20
 
21
21
#ifndef __AUFS_BRANCH_H__
22
22
#define __AUFS_BRANCH_H__
23
23
 
 
24
#ifdef __KERNEL__
 
25
 
24
26
#include <linux/fs.h>
25
27
#include <linux/mount.h>
 
28
#include <linux/version.h>
26
29
#include <linux/aufs_type.h>
27
30
#include "misc.h"
28
31
#include "super.h"
29
32
 
30
 
#ifdef __KERNEL__
31
 
 
32
33
/* protected by superblock rwsem */
33
34
struct aufs_branch {
34
35
        struct file             *br_xino;
208
209
 
209
210
/* ---------------------------------------------------------------------- */
210
211
 
 
212
/*
 
213
 * br_wh_read_lock, br_wh_write_lock
 
214
 * br_wh_read_unlock, br_wh_write_unlock, br_wh_downgrade_lock
 
215
 */
211
216
SimpleRwsemFuncs(br_wh, struct aufs_branch *br, br->br_wh_rwsem);
212
217
 
 
218
/* to debug easier, do not make them inlined functions */
213
219
#define BrWhMustReadLock(br) do { \
214
220
        /* SiMustAnyLock(sb); */ \
215
221
        RwMustReadLock(&(br)->br_wh_rwsem); \