Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55287 - linux/fs/jfs/jfs_dtree.c compile problem needed for JFS to work properly
Summary: linux/fs/jfs/jfs_dtree.c compile problem needed for JFS to work properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 16:26 UTC by George L. Emigh
Modified: 2004-08-26 05:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George L. Emigh 2004-06-26 16:26:58 UTC
JFS Fix as found in LKML:
http://marc.theaimsgroup.com/?l=linux-kernel&m=108739122514202&w=2

as snipped from message:

JFS: move declaration of temp_table to beginning of block

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>

diff -urp linux-2.6.7/fs/jfs/jfs_dtree.c linux/fs/jfs/jfs_dtree.c
--- linux-2.6.7/fs/jfs/jfs_dtree.c      2004-06-16 07:38:20.244688936 -0500
+++ linux/fs/jfs/jfs_dtree.c    2004-06-16 07:46:38.210986552 -0500
@@ -374,6 +374,8 @@ static u32 add_index(tid_t tid, struct i
                return index;
        }
        if (index == (MAX_INLINE_DIRTABLE_ENTRY + 1)) {
+               struct dir_table_slot temp_table[12];
+
                /*
                 * It's time to move the inline table to an external
                 * page and begin to build the xtree
@@ -385,7 +387,6 @@ static u32 add_index(tid_t tid, struct i
                 * Save the table, we're going to overwrite it with the
                 * xtree root
                 */
-               struct dir_table_slot temp_table[12];
                memcpy(temp_table, &jfs_ip->i_dirtable, sizeof(temp_table));
 
                /*


Reproducible: Always
Steps to Reproduce:
1. build the kernel with JFS support
2.
3.

Actual Results:  
not good 

Expected Results:  
good
Comment 1 George L. Emigh 2004-06-26 16:31:05 UTC
guess I should have stated gentoo-dev-sources 2.6.7-r6 is need of the fix, according to the LKML the fix is in the bk tree for future kernel releases.
Comment 2 Matt Taylor 2004-07-31 10:15:15 UTC
This is still a problem in gentoo-dev-sources-2.6.7-r11.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-08-26 05:02:32 UTC
This should be fixed in gentoo-dev-sources-2.6.8; if you still experience this then please reopen this bug. Thanks!