[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0709212141220.6532@blonde.wat.veritas.com>
Date: Fri, 21 Sep 2007 21:42:24 +0100 (BST)
From: Hugh Dickins <hugh@...itas.com>
To: Christoph Lameter <clameter@....com>
cc: linux-kernel@...r.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 <hugh@...itas.com>
--- 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists