Skip to contentSkip to conversation

Error in fs/reiser4/page_cache.c : PG_active not declared

DISCUSSION Ashay Humane 3 participants 3 messages Jul 25, 2004 – Jul 26, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,
I got the vanilla 2.6.7 kernel .. patched it to 2.6.8-rc2 then patched it to 2.6.8-rc2-love2.

After the love patch, I get an error when compiling the kernel:

Undeclared variable PG_active in fs/reiser4/page_cache.c Line 891

There are variables named PG_active_mapped and PG_active_unmapped in other .c and .h files. But no PG_active .

Dosent look too bad .. but what should be done ?

Thanks
Ashay

--
<HAND>

Signature · 1 line
<HAND>
#2 lore raw

This sounds more like a love-sources problem than a reiser4 problem. Post something at http://forums.gentoo.org/viewtopic.php?t=201053 or if you still want help here, try to reproduce the problem with the latest auto-snapshot patched on the -mm version it was diffed against, ideally with no other patches.

I looked at fs/reiser4/page_cache.c and you should be able to avoid the problematic code by disabling resier4 debug output, although I'm not sure how or why it would be enabled.

Quoted 18 lines · Ashay Humane

Hi,
I got the vanilla 2.6.7 kernel .. patched it to 2.6.8-rc2 then patched it to 2.6.8-rc2-love2.

After the love patch, I get an error when compiling the kernel:

Undeclared variable PG_active in fs/reiser4/page_cache.c Line 891

There are variables named PG_active_mapped and PG_active_unmapped in other .c and .h files. But no PG_active .

Dosent look too bad .. but what should be done ?

Thanks
Ashay

--
<HAND>

Signature · 1 line
Jake Maciejewski <[email protected]>
#3 lore raw
In reply to Ashay Humane

Hello

Quoted 4 lines · Ashay Humane

Hi,
I got the vanilla 2.6.7 kernel .. patched it to 2.6.8-rc2 then patched it to 2.6.8-rc2-love2.

Quoted 9 lines

After the love patch, I get an error when compiling the kernel:

Undeclared variable PG_active in fs/reiser4/page_cache.c Line 891

There are variables named PG_active_mapped and PG_active_unmapped in other .c and .h files. But no PG_active .

Dosent look too bad .. but what should be done ?

Please try attached patch

Quoted 8 lines

Thanks
Ashay

--
<HAND>

===== page_cache.c 1.304 vs edited =====

page_cache.c +1 -2
@@ -881,14 +881,13 @@
 	}
 	printk("%s: page index: %lu mapping: %p count: %i private: %lx\n",
 	       prefix, page->index, page->mapping, page_count(page), page->private);
-	printk("\tflags: %s%s%s%s %s%s%s%s %s%s%s%s %s%s%s\n",
+	printk("\tflags: %s%s%s%s %s%s%s %s%s%s%s %s%s%s\n",
 	       page_flag_name(page, PG_locked),
 	       page_flag_name(page, PG_error),
 	       page_flag_name(page, PG_referenced),
 	       page_flag_name(page, PG_uptodate),
 	       page_flag_name(page, PG_dirty),
 	       page_flag_name(page, PG_lru),
-	       page_flag_name(page, PG_active),
 	       page_flag_name(page, PG_slab),
 	       page_flag_name(page, PG_highmem),
 	       page_flag_name(page, PG_checked),