From hugh@veritas.com Fri Sep 21 13:42:42 2007 Date: Fri, 21 Sep 2007 21:42:24 +0100 (BST) From: Hugh Dickins To: Christoph Lameter Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/6] LBS: fix unexported swapper_space 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 --- 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)); } } }