xfs
[Top] [All Lists]

fs.h patch in RH 2.4.9-31

To: linux-xfs <linux-xfs@xxxxxxxxxxx>
Subject: fs.h patch in RH 2.4.9-31
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Fri, 01 Mar 2002 07:42:07 +0100
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 863F357306 for <linux-xfs@oss.sgi.com>; Fri, 1 Mar 2002 07:42:08 +0100 (CET)
Organization: Sauter AG, Basel
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi

I'm right now compiling updated RedHat errata kernel-2.4.9-31 with XFS
support which is then kernel-2.4.9-31SGI_XFS_1.0.2. You'll find the
packages again on oss in the a contrib dir when Eric permits.

Now I have two questions:

1) After downloading the original RedHat RPMS I found out that both 7.1
and 7.2 packages are exactly the same. So I decided to do the same and I
decided to compile on RedHat 7.2 since 7.1 and 7.2 are almost the same
but 7.2 has some newer version of compilers and libs and I thought it's
a good thing to compile on 7.2.
Is it good to compile 7.1 and 7.2 on 7.2 or am I missing something?

2) The jumbo xfs patch linux-2.4.9-RH7.2-xfs.patch.bz2 had two rejects
in fs.h. Unfortunately I'm not a programmer so I'm kindly asking for
advice whether I have correctly fixed the thing. Those two lines are new
in 2.4.9-31

BH_Async,       /* 1 if the buffer is under end_buffer_io_async I/O */
#define buffer_async(bh)       __buffer_state(bh,Async)

I've put them into the patch and the resulting patch looks like this:

@@ -226,7 +233,8 @@
        BH_New,         /* 1 if the buffer is new and not yet written
out */
        BH_Protected,   /* 1 if the buffer is protected */
        BH_JBD,         /* 1 if it has an attached journal_head */
        BH_Async,       /* 1 if the buffer is under end_buffer_io_async
I/O */
+       BH_Delay,       /* 1 if the buffer is delayed allocate */
 
        BH_PrivateStart,/* not a state bit, but the first bit available
                         * for private allocation by other entities
@@ -286,7 +294,8 @@
 #define buffer_mapped(bh)      __buffer_state(bh,Mapped)
 #define buffer_new(bh)         __buffer_state(bh,New)
 #define buffer_protected(bh)   __buffer_state(bh,Protected)
 #define buffer_async(bh)       __buffer_state(bh,Async)
+#define buffer_delay(bh)       __buffer_state(bh,Delay)
 
 #define bh_offset(bh)          ((unsigned long)(bh)->b_data &
~PAGE_MASK)

Is this correct? Or do I have to recompile with a different patch?

Thanks in advance.
-Simon



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