~ubuntu-branches/ubuntu/quantal/aufs/quantal

« back to all changes in this revision

Viewing changes to fs/aufs/branch.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-04-01 18:26:37 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080401182637-ujuqq47eiggw4y5w
Tags: 0+20080401-1
* New upstream snapshot
  - Remove bashisms in script (Closes: #471288)
* debian/conf.mk, linux-patch-aufs.kpatches.sysfs_get_dentry:
  - Remove support for this patch, no longer used
* debian/conf.mk:
  - Add hacks for arm to armel (Closes: #473767)
* debian/control:
  - Add Dm-Upload-Allowed
* debian/copyright:
  - Use http://wiki.debian.org/Proposals/CopyrightFormat
* debian/linux-patch-aufs.kpatches.{splice,put_filp}:
  - Add support for Kernel 2.6.24 (and 2.6.25)
* debian/patches:
  - 01_vserver_apparmor: Update patch
  - 06_rt: Add patch for realtime kernel
  - 07_splice_hack: Add hack to support splice operations (Closes: #473430)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2005, 2006, 2007 Junjiro Okajima
 
2
 * Copyright (C) 2005-2008 Junjiro Okajima
3
3
 *
4
4
 * This program, aufs is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: branch.h,v 1.48 2007/12/10 01:18:47 sfjro Exp $ */
 
19
/*
 
20
 * branch filesystems and xino for them.
 
21
 *
 
22
 * $Id: branch.h,v 1.51 2008/03/31 07:41:17 sfjro Exp $
 
23
 */
20
24
 
21
25
#ifndef __AUFS_BRANCH_H__
22
26
#define __AUFS_BRANCH_H__
25
29
 
26
30
#include <linux/fs.h>
27
31
#include <linux/mount.h>
28
 
#include <linux/version.h>
29
32
#include <linux/aufs_type.h>
30
33
#include "misc.h"
31
34
#include "super.h"
57
60
};
58
61
 
59
62
/* protected by superblock rwsem */
 
63
struct sysaufs_br;
60
64
struct aufs_branch {
61
65
        struct file             *br_xino;
62
66
        //struct xino_file              *br_xino;
77
81
 
78
82
#if 1
79
83
        /* xino truncation */
80
 
        blkcnt_t                br_xino_upper;  /* watermark in block */
 
84
        blkcnt_t                br_xino_upper;  /* watermark in blocks */
81
85
        atomic_t                br_xino_running;
82
86
#endif
83
87
 
85
89
        u64                     br_bytes;
86
90
 
87
91
        au_gen_t                br_generation;
 
92
 
 
93
        /* an entry under sysfs per mount-point */
 
94
        struct sysaufs_br       *br_sabr;
88
95
};
89
96
 
90
97
/* ---------------------------------------------------------------------- */
240
247
/* ---------------------------------------------------------------------- */
241
248
 
242
249
#ifndef AuNoNfsBranch
 
250
static inline int au_test_unsupported_nfs(struct super_block *h_sb)
 
251
{
 
252
        return 0;
 
253
}
 
254
 
243
255
static inline struct vfsmount *au_do_nfsmnt(struct vfsmount *h_mnt)
244
256
{
245
257
        if (!au_test_nfs(h_mnt->mnt_sb))
254
266
        return au_do_nfsmnt(sbr_mnt(sb, bindex));
255
267
}
256
268
#else
 
269
static inline int au_test_unsupported_nfs(struct super_block *h_sb)
 
270
{
 
271
        return au_test_nfs(h_sb);
 
272
}
 
273
 
257
274
static inline struct vfsmount *au_do_nfsmnt(struct vfsmount *h_mnt)
258
275
{
259
276
        return NULL;