lkml.org 
[lkml]   [1999]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: HPFS module can't be compiled in 2.3.29 + patch
On Thu, Nov 25, 1999 at 10:57:13AM +0100, Ferdinand Prantl wrote:
> 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".

No, it is *not* the same.

It is SCALED index to file offset, the primary mechanism
to get filesizes exceeding 2G at 32-bit linux systems.

> Regards,
> Ferda Prantl

/Matti Aarnio

> 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/

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.041 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site