xfs
[Top] [All Lists]

Re: How to use Michael Cohen's kernel

To: Eric Sandeen <sandeen@xxxxxxx>
Subject: Re: How to use Michael Cohen's kernel
From: Stuart Luppescu <s-luppescu@xxxxxxxxxxxx>
Date: 21 Jan 2002 15:16:21 -0600
Cc: Linux XFS List <linux-xfs@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.33.0201211207450.14719-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.33.0201211207450.14719-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On 月, 2002-01-21 at 12:09, Eric Sandeen wrote:
> I don't know how cleanly the XFS patch will apply against the -mjc tree,
> my only suggestion would be to try it and see, and if you have problems
> with conflicts that you can't resolve, someone on the list may be able to
> help.

I applied the xfs patch to the 2.4.17 kernel source, and then applied
the mjc patches. I only got 4 rejected hunks, all but one of which was
very easy to patch by hand. I just have one question:

Here's the original section of code in include/linux/sysctl.h:

#if defined(CONFIG_PAGE_BUF) || defined(CONFIG_PAGE_BUF_MODULE)
        VM_PAGEBUF=11,          /* struct: Control pagebuf parameters */
#endif
       VM_MIN_READAHEAD=12,    /* Min file readahead */
       VM_MAX_READAHEAD=13     /* Max file readahead */
};

And here's the rejected hunk:

--- 140,146 ----
        VM_PAGERDAEMON=8,       /* struct: Control kswapd behaviour */
        VM_PGT_CACHE=9,         /* struct: Set page table cache
parameters */
        VM_PAGE_CLUSTER=10,     /* int: set number of pages to swap
together */
+       VM_MAX_MAP_COUNT=11,    /* int: Maximum number of active map
areas */
         VM_MIN_READAHEAD=12,    /* Min file readahead */
         VM_MAX_READAHEAD=13     /* Max file readahead */
  };

Here's what I have after I patched it by hand:

#if defined(CONFIG_PAGE_BUF) || defined(CONFIG_PAGE_BUF_MODULE)
        VM_PAGEBUF=11,          /* struct: Control pagebuf parameters */
#endif
       VM_MIN_READAHEAD=12,    /* Min file readahead */
       VM_MAX_READAHEAD=13,     /* Max file readahead */
        VM_MAX_MAP_COUNT=14    /* int: Maximum number of active map
areas */
};

The question is, is there anything sacred about the number 11? Can't I
just assign it any unused number? Or am I going to make my system go up
in smoke?


> On 21 Jan 2002, Stuart Luppescu wrote:
> 
> > I read on the Gentoo web site (http://www.gentoo.org/) that they are
> > using Michael Cohen's new kernel with XFS and it is tremendously fast
> > and stable. However, there is no indication on how to patch the thing.
> > In the mjc section of kernel.org there is a patch,
> > 2.4.17-2.4.18-pre3-mjc3.patch
> > which appears to be against a plain 2.4.17 kernel. And we can get xfs
> > patches from oss.sgi.com. But in what order do we apply the patches? Do
> > we apply the mjc patch first and then the 2.4.18 xfs patch, or the
> > 2.4.17 xfs patch and the the mjc patch?
> >
-- 
Stuart Luppescu -=- s-luppescu@xxxxxxxxxxxx        
University of Chicago -=- CCSR 
才文と智奈美の父 -=-    Kernel 2.4.14-xfs                
The idea is to die young as late as possible.   -- 
 Ashley Montague 
 

Attachment: signature.asc
Description: This is a digitally signed message part

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