2.6 fixes in dcache.c
PATCH 1/1 2.6 fixes in dcache.c
This is a minimal patch that fixes a compile warning when building with a 2.6 kernel, and also switches over another #if LINUX_2_5 to the normal #if LINUX_VERSION_CODE ...
--rusty
dcache.c +4 -2
@@ -43,10 +43,12 @@ocfs_inode *oin;ocfs_super *osb;__u64 off; -ocfs_find_inode_args args;struct qstr q;struct buffer_head *fe_bh =NULL ;int needs_trunc; +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 ) +ocfs_find_inode_args args; +#endif LOG_ENTRY_ARGS ("(0x%08x, %d, '%*s')\n" , dentry, flags, dentry->d_name.len, dentry->d_name.name);
@@ -127,7 +129,7 @@LOG_TRACE_STR ("found the file entry, but it has been deleted or renamed!" ); ret =0 ;/* it is now officially stale :) */ }else { -#ifdef LINUX_2_5 +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )ocfs_read_locked_inode (inode, fe);#else args.offset = fe->this_sector;
Committed.
--Mark
Quoted 25 lines · Rusty Lynch
This is a minimal patch that fixes a compile warning when building with a 2.6 kernel, and also switches over another #if
LINUX_2_5to the normal #ifLINUX_VERSION_CODE...--rustyIndex:
src/dcache.c
===================================================================dcache.c +3
-1@@ -43,10 +43,12 @@ocfs_inode *oin;ocfs_super *osb;__u64 off; -ocfs_find_inode_args args;struct qstr q;struct buffer_head *fe_bh =NULL ;int needs_trunc; +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 ) +ocfs_find_inode_args args; +#endif LOG_ENTRY_ARGS ("(0x%08x, %d, '%*s')\n" , dentry, flags, dentry->d_name.len, dentry->d_name.name);
dcache.c line 135
Quoted 8 lines
dcache.c +1
-1@@ -127,7 +129,7 @@LOG_TRACE_STR ("found the file entry, but it has been deleted or renamed!" ); ret =0 ;/* it is now officially stale :) */ }else { -#ifdef LINUX_2_5 +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )ocfs_read_locked_inode (inode, fe);#else args.offset = fe->this_sector;
--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]