snapshot 2004.03.26 + linux 2.6.5 = build error
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.ofs/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
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.cwhich 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.ofs/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
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.cwhich 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.ofs/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
Quoted 4 lines · Nikita Danilov
Try this:
=====
as_ops.c1.69 vs edited =====
=====plugin/item/tail.c1.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
Quoted 7 lines · Raymond A. Meijer
Quoted 4 lines · Nikita Danilov
Try this:
=====
as_ops.c1.69 vs edited =====
=====plugin/item/tail.c1.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.
as_ops.c line 568
Quoted 12 lines · Nikita Danilov
Try this:
----------------------------------------------------------------------
=====as_ops.c1.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
SOLVED: snapshot 2004.03.26 + linux 2.6.5 = build error
In reply to Nikita DanilovQuoted 4 lines · Nikita Danilov
Try this:
----------------------------------------------------------------------
=====as_ops.c1.69 vs edited =====
[...]
Quoted 1 line
=====
plugin/item/tail.c1.167 vs edited =====
[...]
Quoted 1 line
----------------------------------------------------------------------
This patch worked indeed. I formatted and mounted a Reiser4 partition under kernel 2.6.5.
Thanks,
Ray