]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/gfs2/incore.h
[GFS2] Update copyright, tidy up incore.h
[linux-2.6-omap-h63xx.git] / fs / gfs2 / incore.h
index 034a855a14bbee8829e929e28b37e90139a811c6..06f5ec6ebf7fafc0c6d0bea7be9e48ee0af23ce1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * This copyrighted material is made available to anyone wishing to use,
  * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU General Public License v.2.
+ * of the GNU General Public License version 2.
  */
 
 #ifndef __INCORE_DOT_H__
 
 struct gfs2_log_operations;
 struct gfs2_log_element;
-struct gfs2_bitmap;
-struct gfs2_rgrpd;
-struct gfs2_bufdata;
-struct gfs2_glock_operations;
 struct gfs2_holder;
 struct gfs2_glock;
-struct gfs2_alloc;
-struct gfs2_inode;
-struct gfs2_file;
-struct gfs2_revoke;
-struct gfs2_revoke_replay;
 struct gfs2_quota_data;
-struct gfs2_log_buf;
 struct gfs2_trans;
 struct gfs2_ail;
 struct gfs2_jdesc;
-struct gfs2_args;
-struct gfs2_tune;
 struct gfs2_gl_hash_bucket;
 struct gfs2_sbd;
 
@@ -130,7 +118,7 @@ struct gfs2_glock_operations {
        void (*go_unlock) (struct gfs2_holder * gh);
        void (*go_callback) (struct gfs2_glock * gl, unsigned int state);
        void (*go_greedy) (struct gfs2_glock * gl);
-       int go_type;
+       const int go_type;
 };
 
 enum {
@@ -167,7 +155,6 @@ enum {
        GLF_LOCK                = 1,
        GLF_STICKY              = 2,
        GLF_PREFETCH            = 3,
-       GLF_SYNC                = 4,
        GLF_DIRTY               = 5,
        GLF_SKIP_WAITERS2       = 6,
        GLF_GREEDY              = 7,
@@ -189,7 +176,7 @@ struct gfs2_glock {
        struct list_head gl_waiters2;   /* HIF_DEMOTE, HIF_GREEDY */
        struct list_head gl_waiters3;   /* HIF_PROMOTE */
 
-       struct gfs2_glock_operations *gl_ops;
+       const struct gfs2_glock_operations *gl_ops;
 
        struct gfs2_holder *gl_req_gh;
        gfs2_glop_bh_t gl_req_bh;
@@ -216,8 +203,8 @@ struct gfs2_glock {
 struct gfs2_alloc {
        /* Quota stuff */
 
-       struct gfs2_quota_data *al_qd[4];
-       struct gfs2_holder al_qd_ghs[4];
+       struct gfs2_quota_data *al_qd[2*MAXQUOTAS];
+       struct gfs2_holder al_qd_ghs[2*MAXQUOTAS];
        unsigned int al_qd_num;
 
        u32 al_requested; /* Filled in by caller of gfs2_inplace_reserve() */
@@ -234,7 +221,6 @@ struct gfs2_alloc {
 };
 
 enum {
-       GIF_MIN_INIT            = 0,
        GIF_QD_LOCKED           = 1,
        GIF_PAGED               = 2,
        GIF_SW_PAGED            = 3,
@@ -280,6 +266,7 @@ static inline struct gfs2_sbd *GFS2_SB(struct inode *inode)
 
 enum {
        GFF_DID_DIRECT_ALLOC    = 0,
+       GFF_EXLOCK = 1,
 };
 
 struct gfs2_file {
@@ -306,11 +293,11 @@ enum {
 };
 
 struct gfs2_quota_lvb {
-        uint32_t qb_magic;
-        uint32_t __pad;
-        uint64_t qb_limit;      /* Hard limit of # blocks to alloc */
-        uint64_t qb_warn;       /* Warn user when alloc is above this # */
-        int64_t qb_value;       /* Current # blocks allocated */
+        __be32 qb_magic;
+        u32 __pad;
+        __be64 qb_limit;      /* Hard limit of # blocks to alloc */
+        __be64 qb_warn;       /* Warn user when alloc is above this # */
+        __be64 qb_value;       /* Current # blocks allocated */
 };
 
 struct gfs2_quota_data {
@@ -472,6 +459,7 @@ enum {
 
 struct gfs2_sbd {
        struct super_block *sd_vfs;
+       struct super_block *sd_vfs_meta;
        struct kobject sd_kobj;
        unsigned long sd_flags; /* SDF_... */
        struct gfs2_sb sd_sb;
@@ -507,7 +495,6 @@ struct gfs2_sbd {
        struct gfs2_holder sd_live_gh;
        struct gfs2_glock *sd_rename_gl;
        struct gfs2_glock *sd_trans_gl;
-       struct mutex sd_invalidate_inodes_mutex;
 
        /* Inode Stuff */
 
@@ -653,6 +640,7 @@ struct gfs2_sbd {
        /* Debugging crud */
 
        unsigned long sd_last_warning;
+       struct vfsmount *sd_gfs2mnt;
 };
 
 #endif /* __INCORE_DOT_H__ */