patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / jfs / jfs_incore.h
index 1a6ec59..ac608c9 100644 (file)
@@ -152,6 +152,11 @@ struct jfs_sb_info {
        pxd_t           ait2;           /* pxd describing AIT copy      */
        char            uuid[16];       /* 128-bit uuid for volume      */
        char            loguuid[16];    /* 128-bit uuid for log */
+       /*
+        * commit_state is used for synchronization of the jfs_commit
+        * threads.  It is protected by LAZY_LOCK().
+        */
+       int             commit_state;   /* commit state */
        /* Formerly in ipimap */
        uint            gengen;         /* inode generation generator*/
        uint            inostamp;       /* shows inode belongs to fileset*/
@@ -164,6 +169,9 @@ struct jfs_sb_info {
        uint            p_state;        /* state prior to going no integrity */
 };
 
+/* jfs_sb_info commit_state */
+#define IN_LAZYCOMMIT 1
+
 static inline struct jfs_inode_info *JFS_IP(struct inode *inode)
 {
        return list_entry(inode, struct jfs_inode_info, vfs_inode);