mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/6] LBS: fix unexported swapper_space
@ 2007-09-21 20:42 Hugh Dickins
  2007-09-21 20:45 ` [PATCH 2/6] LBS: fix uninitialized swapper_space Hugh Dickins
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Hugh Dickins @ 2007-09-21 20:42 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-kernel

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@veritas.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));
 			}
 		}
 	}

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-09-26 18:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 20:42 [PATCH 1/6] LBS: fix unexported swapper_space Hugh Dickins
2007-09-21 20:45 ` [PATCH 2/6] LBS: fix uninitialized swapper_space Hugh Dickins
2007-09-24 21:16   ` Christoph Lameter
2007-09-26 18:34     ` Hugh Dickins
2007-09-26 18:44       ` Christoph Lameter
2007-09-21 20:45 ` [PATCH 3/6] LBS: fix hang in isolate_lru_pages Hugh Dickins
2007-09-21 20:46 ` [PATCH 4/6] LBS: fix oops in try_to_release_page Hugh Dickins
2007-09-21 20:47 ` [PATCH 5/6] LBS: fix crashes in vma_address Hugh Dickins
2007-09-21 20:48 ` [PATCH 6/6] LBS: support largeblocked swapfile Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®