move BH_JBD out of buffer_head.h

move BH_JBD out of buffer_head.h

Post by Andrew Morto » Tue, 28 May 2002 06:00:16



For historical reasons, ext3 has a private BH state bit which has
global scope.  This patch moves it inside ext3.

=====================================

--- 2.5.18/include/linux/buffer_head.h~bh_jbd   Sat May 25 23:25:51 2002

        BH_Async_Read,  /* Is under end_buffer_async_read I/O */
        BH_Async_Write, /* Is under end_buffer_async_write I/O */

-       BH_JBD,         /* Has an attached ext3 journal_head */
        BH_Boundary,    /* Block is followed by a discontiguity */
        BH_PrivateStart,/* not a state bit, but the first bit available
                         * for private allocation by other entities
--- 2.5.18/include/linux/jbd.h~bh_jbd   Sat May 25 23:25:51 2002

 #endif         /* JBD_ASSERTIONS */

 enum jbd_state_bits {
-       BH_JWrite

-       BH_Freed,               /* 1 if buffer has been freed (truncated) */
-       BH_Revoked,             /* 1 if buffer has been revoked from the log */
-       BH_RevokeValid,         /* 1 if buffer revoked flag is valid */
-       BH_JBDDirty,            /* 1 if buffer is dirty but journaled */
+       BH_JBD                  /* Has an attached ext3 journal_head */
+         = BH_PrivateStart,    

+       BH_Freed,               /* Has been freed (truncated) */
+       BH_Revoked,             /* Has been revoked from the log */
+       BH_RevokeValid,         /* Revoked flag is valid */
+       BH_JBDDirty,            /* Is dirty but journaled */
 };

 BUFFER_FNS(JBD, jbd)

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/