Skip to contentSkip to conversation

reiser4 as module (reiser4-2004.06.01-17.16-linux-2.6.7-rc1-mm1 )

DISCUSSION Svetoslav Slavtchev 1 participant 1 message Jun 3, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 33 lines · Svetoslav Slavtchev
Quoted 7 lines

Hi all,

i'm having problem with unresolved symbols, when compiling the above auto bk-snapshot with reiser4 as module, and i really need to compile it as module

try this fix:
========================================
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/03 14:07:30+04:00 [email protected]
# reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
#

# as_ops.c
#   2004/06/03 14:07:26+04:00 [email protected] +1 -1
#   reiser4_clear_page_dirty: use page->mapping instead of the wrapper.
# 
diff -Nru a/as_ops.c b/as_ops.c
as_ops.c +1 -1
@@ -72,7 +72,7 @@
 	struct address_space *mapping;
 	unsigned long flags;
 
-	mapping = page_mapping(page);
+	mapping = page->mapping;
 	BUG_ON(mapping == NULL);
 
 	read_lock_irqsave(&mapping->tree_lock, flags);
Quoted 2 lines

========================================

ok,

once again the missing hunks

the pagevec exports are needed only for 2.6.7-rc2+++

best,
svetljo

Signature · 2 lines
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
fs/inode.c +1 -0
@@ -234,6 +234,7 @@
 		list_move(&inode->i_list, &inode_in_use);
 	inodes_stat.nr_unused--;
 }
+EXPORT_SYMBOL(__iget);
 
 /**
  * clear_inode - clear an inode
mm/swap.c renamed from mm/swap.c.orig +2 -0
@@ -258,6 +258,7 @@
 	release_pages(pvec->pages, pagevec_count(pvec), pvec->cold);
 	pagevec_reinit(pvec);
 }
+EXPORT_SYMBOL(__pagevec_release);
 
 /*
  * pagevec_release() for pages which are known to not be on the LRU
@@ -387,6 +388,7 @@
 					nr_pages, pvec->pages);
 	return pagevec_count(pvec);
 }
+EXPORT_SYMBOL(pagevec_lookup_tag);
 
 
 #ifdef CONFIG_SMP
fs/reiser4/as_ops.c +2 -2
diff -Naurb reiser4-2004.06.01-17.16-linux-2.6.7-rc1-mm1/fs/reiser4/as_ops.c reiser4-current/fs/reiser4/as_ops.c
@@ -567,13 +567,13 @@
 
 		/* we are under memory pressure so release jnode also. */
 		jput(node);
-		read_lock_irq(&mapping->tree_lock);
+		write_lock_irq(&mapping->tree_lock);
 		/* shrink_list() + radix-tree */
 		if (page_count(page) == 2) {
 			__remove_from_page_cache(page);
 			__put_page(page);
 		}
-		read_unlock_irq(&mapping->tree_lock);
+		write_unlock_irq(&mapping->tree_lock);
 
 		return 1;
 	} else {
fs/reiser4/plugin/item/extent_flush_ops.c +3 -0
diff -Naurb reiser4-2004.06.01-17.16-linux-2.6.7-rc1-mm1/fs/reiser4/plugin/item/extent_flush_ops.c reiser4-current/fs/reiser4/plugin/item/extent_flush_ops.c
@@ -227,6 +227,9 @@
 			goto exit;
 		}
 
+		assert ("zam-1042", !jnode_is_flushprepped(neighbor));
+		assert ("zam-1043", blocknr_is_fake(jnode_get_block(neighbor)));
+
 		ON_TRACE(TRACE_FLUSH_VERB, "unalloc scan index %lu: %s\n", scan_index, jnode_tostring(neighbor));
 
 		/* XXX commented assertion out, because it is inherently
fs/reiser4/as_ops.c renamed from fs/reiser4/as_ops.c~ +1 -1
@@ -72,7 +72,7 @@
 	struct address_space *mapping;
 	unsigned long flags;
 
-	mapping = page_mapping(page);
+	mapping = page->mapping;
 	BUG_ON(mapping == NULL);
 
 	read_lock_irqsave(&mapping->tree_lock, flags);