HPFS module can't be compiled in 2.3.29 + patch

Ferdinand Prantl (Ferdinand.Prantl@ff.cuni.cz)
Thu, 25 Nov 1999 10:57:13 +0100


Hi all,

when I was compiling 2.3.29 with HPFS as a module I came to an error
on line 97 (and then probly on 99). It was about unknown member
"offset" of the structure "page". I peered into include/linux/mm.h
and there was no "offset" member in "struct page" declaration, indeed.
I looked into smbfs code and replaced "page->offset" with
"page->index". If you'd want to test it I'm enclosing patch to be
copied into kernel source directory (usually /usr/src/linux)
and to be applied: "patch -p0 <hpfs-2.3.29.patch".

Regards,

Ferda Prantl

hpfs-2.3.29.patch:
====================================================================
--- fs/hpfs/file.c.old Wed Nov 24 23:13:04 1999
+++ fs/hpfs/file.c Wed Nov 24 23:13:33 1999
@@ -94,9 +94,9 @@
struct page * page_cache = NULL;
long status;

- printk("- off: %08x\n", (int)page->offset);
+ printk("- off: %08x\n", (int)page->index);
pgpos = (inode->i_blocks - 1) * 512 & PAGE_CACHE_MASK;
- while (pgpos < page->offset) {
+ while (pgpos < page->index) {
long pgp = pgpos;
printk("pgpos: %08x, bl: %d\n", (int)pgpos, (int)inode->i_blocks);
hash = page_hash(&inode->i_data, pgpos);
====================================================================

-- 

"We are free only in our dreams. We need money for the rest of life." ---------------------------------- Ferdinand Prantl LVT FF UK e-mail: prantl@ff.cuni.cz www: http://www.ff.cuni.cz/~prantl ICQ: 36302930

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/