--- ocfs2.old/src/inc/io.h 2004-05-24 19:16:00.000000000 -0700 +++ ocfs2/src/inc/io.h 2004-05-24 23:11:57.877670837 -0700 @@ -75,7 +75,7 @@ #define OCFS_NONCACHED(osb,off) ((off) < (osb)->vol_layout.data_start_off) -#define BH_Modified 18 +#define BH_Modified 20 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) /* @@ -214,10 +214,10 @@ ocfs_bh_sem_unlock(bh); } - +#define JBD_STATE_BIT_MAX 21 #define STATE_BIT_MAX (1 << 12) #define STATE_BIT_MAX_MASK ((1 << 12)-1) -#define STATE_BIT_MASK ((~0UL)<<19) +#define STATE_BIT_MASK ((~0UL)<b_state |= seq; @@ -238,7 +238,7 @@ static inline int TEST_BH_SEQNUM(struct inode *inode, struct buffer_head *bh) { int ret; - unsigned int seq = (bh->b_state & STATE_BIT_MASK) >> 19; + unsigned int seq = (bh->b_state & STATE_BIT_MASK) >> JBD_STATE_BIT_MAX; ret = (seq == atomic_read(GET_INODE_CLEAN_SEQ(inode))); return ret;