Skip to contentSkip to conversation

snapshot 2004.03.26 + linux 2.6.5 = build error

DISCUSSION Domenico Andreoli 4 participants 7 messages Apr 4, 2004 – Apr 5, 2004

lore
Share & tools
lore
#0 lore raw

hi there,

today i applied latest snapshot to linux kernel 2.6.5 and tried to build it.

patch didn't apply cleanly, there were some hunks and a reject on arch/sparc/kernel/init_task.c which looked trivial to fix.

problem arrived on reiser4 kernel module (i'm using as module with no problems), build error follows:

CC [M] fs/reiser4/as_ops.o
fs/reiser4/as_ops.c: In function `move_inode_out_from_sync_inodes_loop':
fs/reiser4/as_ops.c:570: error: structure has no member named `dirtied_when' make[4]: *** [fs/reiser4/as_ops.o] Error 1

any hotfix for this?

cheers
domenico

-----[ Domenico Andreoli, aka cavok
--[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50

#1 lore raw
Quoted 6 lines · Domenico Andreoli

today i applied latest snapshot to linux kernel 2.6.5 and tried to build it.

patch didn't apply cleanly, there were some hunks and a reject on arch/sparc/kernel/init_task.c which looked trivial to fix.

Quoted 8 lines

problem arrived on reiser4 kernel module (i'm using as module with no problems), build error follows:

CC [M] fs/reiser4/as_ops.o
fs/reiser4/as_ops.c: In function `move_inode_out_from_sync_inodes_loop':
fs/reiser4/as_ops.c:570: error: structure has no member named `dirtied_when' make[4]: *** [fs/reiser4/as_ops.o] Error 1

Exactly the same error here, compiling it into the kernel.

Any suggestions? On 2.6.4 it patched & compiled pretty much cleanly and worked like a charm...

Thanks,

Ray

#2 lore raw
Quoted 17 lines · Raymond A. Meijer
Quoted 6 lines · Domenico Andreoli

today i applied latest snapshot to linux kernel 2.6.5 and tried to build it.

patch didn't apply cleanly, there were some hunks and a reject on arch/sparc/kernel/init_task.c which looked trivial to fix.

Quoted 8 lines

problem arrived on reiser4 kernel module (i'm using as module with no problems), build error follows:

CC [M] fs/reiser4/as_ops.o
fs/reiser4/as_ops.c: In function `move_inode_out_from_sync_inodes_loop':
fs/reiser4/as_ops.c:570: error: structure has no member named `dirtied_when' make[4]: *** [fs/reiser4/as_ops.o] Error 1

Quoted 4 lines

Exactly the same error here, compiling it into the kernel.

Any suggestions? On 2.6.4 it patched & compiled pretty much cleanly and worked like a charm...

Try this:

----------------------------------------------------------------------
===== as_ops.c 1.69 vs edited =====

as_ops.c +1 -1
@@ -567,7 +565,7 @@
 	/* work around infinite loop in pdflush->sync_sb_inodes. */
 	/* Problem: ->writepages() is supposed to submit io for the pages from
 	 * ->io_pages list and to clean this list. */
-	mapping->dirtied_when = jiffies|1;
+	mapping->host->dirtied_when = jiffies|1;
 	spin_lock(&inode_lock);
 	list_move(&mapping->host->i_list, &mapping->host->i_sb->s_dirty);
 	spin_unlock(&inode_lock);

===== plugin/item/tail.c 1.167 vs edited =====

plugin/item/tail.c +1 -1
@@ -474,7 +474,7 @@
 	   from sb's dirty list and it looks like nobody puts there inodes of
 	   files which are built of tails */
 	if (back_to_dirty) {
-		mapping->dirtied_when = jiffies|1;
+		inode->dirtied_when = jiffies|1;
 		spin_lock(&inode_lock);
 		list_move(&inode->i_list, &inode->i_sb->s_dirty);
 		spin_unlock(&inode_lock);

----------------------------------------------------------------------

Quoted 3 lines

Thanks,

Nikita.

Quoted 2 lines

Ray

#3 lore raw
Quoted 4 lines · Nikita Danilov

Try this:

===== as_ops.c 1.69 vs edited =====
===== plugin/item/tail.c 1.167 vs edited =====

Patch applied, and I got only 2 warnings:

fs/reiser4/plugin/cryptcompress.c:2269: warning: `cut_items_cryptcompress' defined but not used

fs/reiser4/plugin/disk_format/disk_format40.c:65: warning:
`get_format40_formatting_policy' defined but not used

The machine will be rebooted in a little while. I'll keep you posted.

Thanks,

Ray

#4 lore raw
Quoted 7 lines · Raymond A. Meijer
Quoted 4 lines · Nikita Danilov

Try this:

===== as_ops.c 1.69 vs edited =====
===== plugin/item/tail.c 1.167 vs edited =====

Quoted 7 lines

Patch applied, and I got only 2 warnings:

fs/reiser4/plugin/cryptcompress.c:2269: warning: `cut_items_cryptcompress' defined but not used

fs/reiser4/plugin/disk_format/disk_format40.c:65: warning:
`get_format40_formatting_policy' defined but not used

They are harmless.

Quoted 7 lines

The machine will be rebooted in a little while. I'll keep you posted.

Thanks,

Ray

Nikita.

#5 lore raw
In reply to Nikita Danilov

as_ops.c line 568

Quoted 12 lines · Nikita Danilov

Try this:

----------------------------------------------------------------------
===== as_ops.c 1.69 vs edited =====

as_ops.c +1 -1
@@ -567,7 +565,7 @@
 	/* work around infinite loop in pdflush->sync_sb_inodes. */
 	/* Problem: ->writepages() is supposed to submit io for the pages from
 	 * ->io_pages list and to clean this list. */
-	mapping->dirtied_when = jiffies|1;
+	mapping->host->dirtied_when = jiffies|1;
                                       ^^^^^^^^^^^^

This was a bug fixed in the -mm tree (might be in mainline now too). You need to get rid of the |1, it can lead to a dirtied_when in the future, and missed writeback.

-chris

#6 lore raw

SOLVED: snapshot 2004.03.26 + linux 2.6.5 = build error

In reply to Nikita Danilov
Quoted 4 lines · Nikita Danilov

Try this:

----------------------------------------------------------------------
===== as_ops.c 1.69 vs edited =====

[...]

Quoted 1 line

===== plugin/item/tail.c 1.167 vs edited =====

[...]

Quoted 1 line

----------------------------------------------------------------------

This patch worked indeed. I formatted and mounted a Reiser4 partition under kernel 2.6.5.

Thanks,

Ray