--- fs/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/fs/buffer.c =================================================================== --- linux-2.6.orig/fs/buffer.c 2007-08-28 01:51:55.000000000 -0700 +++ linux-2.6/fs/buffer.c 2007-08-28 10:11:38.000000000 -0700 @@ -1428,7 +1428,7 @@ void set_bh_page(struct buffer_head *bh, struct page *page, unsigned long offset) { bh->b_page = page; - BUG_ON(offset >= page_cache_size(page->mapping)); + BUG_ON(offset >= compound_size(page)); if (PageHighMem(page)) /* * This catches illegal uses and preserves the offset: