[PATCH 1/6] LBS: fix unexported swapper_space

From: Hugh Dickins
Date: Fri Sep 21 2007 - 16:42:50 EST


If any loadable module uses the page_mapping() inline, we would need to
export swapper_space (again: it was exported once, but janitorially
unexported); but a filesystem sees only its own pages, so reiserfs can
use page->mapping directly without needing the page_mapping() inline.

Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx>

--- 2.6.23-rc6-lbs/fs/reiserfs/stree.c 2007-09-11 20:01:08.000000000 +0100
+++ linux/fs/reiserfs/stree.c 2007-09-13 20:04:04.000000000 +0100
@@ -1440,7 +1440,7 @@ static void unmap_buffers(struct page *p

if (page) {
if (page_has_buffers(page)) {
- tail_index = page_cache_offset(page_mapping(page), pos);
+ tail_index = page_cache_offset(page->mapping, pos);
cur_index = 0;
head = page_buffers(page);
bh = head;
@@ -1461,7 +1461,7 @@ static void unmap_buffers(struct page *p
} while (bh != head);
if (PAGE_SIZE == bh->b_size) {
cancel_dirty_page(page,
- page_cache_size(page_mapping(page)));
+ page_cache_size(page->mapping));
}
}
}
-
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/