unsigned long flags;
#ifdef HAVE_PAGE_CONSTANT
- struct bio_vec *bvl;
- int i;
+ struct bio_vec *bvl;
+ int i;
#endif
/* CAVEAT EMPTOR: possibly in IRQ context
}
#ifdef HAVE_PAGE_CONSTANT
- bio_for_each_segment(bvl, bio, i)
- ClearPageConstant(bvl->bv_page);
+ bio_for_each_segment(bvl, bio, i)
+ ClearPageConstant(bvl->bv_page);
#endif
spin_lock_irqsave(&iobuf->dr_lock, flags);
nblocks++;
#ifdef HAVE_PAGE_CONSTANT
- /* I only set the page to be constant only if it
- * is mapped to a contiguous underlying disk block(s).
- * It will then make sure the corresponding device
- * cache of raid5 will be overwritten by this page.
- * - jay */
+ /* I only set the page to be constant only if it
+ * is mapped to a contiguous underlying disk block(s).
+ * It will then make sure the corresponding device
+ * cache of raid5 will be overwritten by this page.
+ * - jay */
if ((rw == OBD_BRW_WRITE) &&
(nblocks == blocks_per_page) &&
mapping_cap_page_constant_write(inode->i_mapping))
- SetPageConstant(page);
+ SetPageConstant(page);
#endif
if (bio != NULL &&