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

« back to all changes in this revision

Viewing changes to fs/gfs2/incore.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <linux/workqueue.h>
16
16
#include <linux/dlm.h>
17
17
#include <linux/buffer_head.h>
 
18
#include <linux/rcupdate.h>
 
19
#include <linux/rculist_bl.h>
 
20
#include <linux/completion.h>
18
21
 
19
22
#define DIO_WAIT        0x00000010
20
23
#define DIO_METADATA    0x00000020
21
 
#define DIO_ALL         0x00000100
22
24
 
23
25
struct gfs2_log_operations;
24
26
struct gfs2_log_element;
198
200
        GLF_INITIAL                     = 10,
199
201
        GLF_FROZEN                      = 11,
200
202
        GLF_QUEUED                      = 12,
 
203
        GLF_LRU                         = 13,
 
204
        GLF_OBJECT                      = 14, /* Used only for tracing */
201
205
};
202
206
 
203
207
struct gfs2_glock {
204
 
        struct hlist_node gl_list;
 
208
        struct hlist_bl_node gl_list;
205
209
        unsigned long gl_flags;         /* GLF_... */
206
210
        struct lm_lockname gl_name;
207
211
        atomic_t gl_ref;
232
236
 
233
237
        struct list_head gl_ail_list;
234
238
        atomic_t gl_ail_count;
 
239
        atomic_t gl_revokes;
235
240
        struct delayed_work gl_work;
236
241
        struct work_struct gl_delete;
 
242
        struct rcu_head gl_rcu;
237
243
};
238
244
 
239
245
#define GFS2_MIN_LVB_SIZE 32    /* Min size of LVB that gfs2 supports */
314
320
        QDF_USER                = 0,
315
321
        QDF_CHANGE              = 1,
316
322
        QDF_LOCKED              = 2,
 
323
        QDF_REFRESH             = 3,
317
324
};
318
325
 
319
326
struct gfs2_quota_data {
370
377
        unsigned int ai_first;
371
378
        struct list_head ai_ail1_list;
372
379
        struct list_head ai_ail2_list;
373
 
 
374
 
        u64 ai_sync_gen;
375
380
};
376
381
 
377
382
struct gfs2_journal_extent {
484
489
 
485
490
        char sb_lockproto[GFS2_LOCKNAME_LEN];
486
491
        char sb_locktable[GFS2_LOCKNAME_LEN];
487
 
        u8 sb_uuid[16];
488
492
};
489
493
 
490
494
/*
543
547
        struct gfs2_glock *sd_trans_gl;
544
548
        wait_queue_head_t sd_glock_wait;
545
549
        atomic_t sd_glock_disposal;
 
550
        struct completion sd_locking_init;
546
551
 
547
552
        /* Inode Stuff */
548
553
 
647
652
        unsigned int sd_log_flush_head;
648
653
        u64 sd_log_flush_wrapped;
649
654
 
 
655
        spinlock_t sd_ail_lock;
650
656
        struct list_head sd_ail1_list;
651
657
        struct list_head sd_ail2_list;
652
 
        u64 sd_ail_sync_gen;
653
658
 
654
659
        /* Replay stuff */
655
660