[BUG] [PATCH] memory hotremoval for linux-2.6.7 [15/16]

From: Hirokazu Takahashi
Date: Wed Jul 14 2004 - 09:25:12 EST




--- linux-2.6.7/fs/direct-io.c.ORG Fri Jun 18 13:52:47 2032
+++ linux-2.6.7/fs/direct-io.c Fri Jun 18 13:53:49 2032
@@ -411,7 +411,7 @@ static int dio_bio_complete(struct dio *
for (page_no = 0; page_no < bio->bi_vcnt; page_no++) {
struct page *page = bvec[page_no].bv_page;

- if (dio->rw == READ)
+ if (dio->rw == READ && !PageCompound(page))
set_page_dirty_lock(page);
page_cache_release(page);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/