|
@@ -34,6 +34,7 @@ enum bh_state_bits {
|
|
|
BH_Write_EIO, /* I/O error on write */
|
|
|
BH_Ordered, /* ordered write */
|
|
|
BH_Eopnotsupp, /* operation not supported (barrier) */
|
|
|
+ BH_Unwritten, /* Buffer is allocated on disk but not written */
|
|
|
|
|
|
BH_PrivateStart,/* not a state bit, but the first bit available
|
|
|
* for private allocation by other entities
|
|
@@ -126,6 +127,7 @@ BUFFER_FNS(Boundary, boundary)
|
|
|
BUFFER_FNS(Write_EIO, write_io_error)
|
|
|
BUFFER_FNS(Ordered, ordered)
|
|
|
BUFFER_FNS(Eopnotsupp, eopnotsupp)
|
|
|
+BUFFER_FNS(Unwritten, unwritten)
|
|
|
|
|
|
#define bh_offset(bh) ((unsigned long)(bh)->b_data & ~PAGE_MASK)
|
|
|
#define touch_buffer(bh) mark_page_accessed(bh->b_page)
|