xfs
[Top] [All Lists]

2.4.21-20.EL undefined references in modules

To: linux-xfs@xxxxxxxxxxx
Subject: 2.4.21-20.EL undefined references in modules
From: Stas Nikiforov <stas@xxxxxxxxxxx>
Date: Thu, 07 Oct 2004 16:39:49 +0700
Organization: ITAM
Reply-to: stas@xxxxxxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hi,
I've tried to compile xfs modules for
RHEL 2.4.21-20.ELsmp kernel and got some errors.

Compilation was successful, but I'm unable to insert
modules due to unresolved dependencies.

These are:

I think that the problem is in wrong definition
of kernel version in file linux/xfs_lrw.c
lines 325-335. This code below suppose that
the kernel version is less then 2.4.22, but
some features were backported by RedHat to 
2.4.21-20. 

Is it possible to define somewhere
KERNEL_HAS_NEW_O_DIRECT and safely recompile xfs modules
for updated RHEL kernel?

Best regards
Stas.

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,22) || defined
(KERNEL_HAS_NEW_O_DIRECT)
        if (unlikely(ioflags & IO_ISDIRECT)) {
                ret = do_generic_direct_read(file, buf, size, offset);
                UPDATE_ATIME(file->f_dentry->d_inode);
        } else {
                ret = generic_file_read(file, buf, size, offset);
        }
#else
        ret = generic_file_read(file, buf, size, offset);
#endif

-- 
Mr. Nikiforov Stanislav

Intsitute of Theoretical and Applied Mechanics
4/1, Institutskaya str., 
Novosibirsk, 930090, 
Russia

Voice: +7 3832 343163
E-mail: stas@xxxxxxxxxxx  


<Prev in Thread] Current Thread [Next in Thread>