~ubuntu-branches/ubuntu/vivid/aufs/vivid

« back to all changes in this revision

Viewing changes to fs/aufs25/wkq.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-08-21 14:58:54 UTC
  • mfrom: (1.1.8 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080821145854-4b49x09r4zmvlk5o
Tags: 0+20080719-4
01_vserver_apparmor.dpatch: [UPDATE] Disable vserver patches on kernel 
2.6.26, because they are not needed anymore. (Closes: #495921)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
/*
20
20
 * workqueue for asynchronous/super-io/delegated operations
21
21
 *
22
 
 * $Id: wkq.h,v 1.4 2008/05/26 04:04:27 sfjro Exp $
 
22
 * $Id: wkq.h,v 1.5 2008/06/16 00:13:22 sfjro Exp $
23
23
 */
24
24
 
25
25
#ifndef __AUFS_WKQ_H__
38
38
struct au_wkq {
39
39
        struct workqueue_struct *q;
40
40
 
 
41
        /* balancing */
 
42
        atomic_t                busy;
 
43
 
41
44
        /* accounting */
42
 
        atomic_t                busy;
43
 
        unsigned int            max_busy; /* todo: STAT only */
 
45
#ifdef CONFIG_AUFS_STAT
 
46
        unsigned int            max_busy;
 
47
#endif
44
48
};
45
49
 
46
50
/*
107
111
        return au_wkq_run(func, args, sb, flags);
108
112
}
109
113
 
 
114
static inline void au_wkq_max_busy_init(struct au_wkq *wkq)
 
115
{
 
116
#ifdef CONFIG_AUFS_STAT
 
117
        wkq->max_busy = 0;
 
118
#endif
 
119
}
 
120
 
110
121
#ifdef CONFIG_AUFS_HINOTIFY
111
122
/* todo: memory barrier? */
112
123
static inline void au_nwt_init(struct au_nowait_tasks *nwt)