From: thunder7@xs4all.nl
To: parisc-linux@lists.parisc-linux.org
Cc: linux-kernel@vger.kernel.org
Subject: [parisc-linux] [SOLVED + PATCH]: documented Oops running big-endian reiserfs on parisc architecture
Date: Sun, 2 Sep 2001 19:57:17 +0200 [thread overview]
Message-ID: <20010902195717.A21209@middle.of.nowhere> (raw)
In-Reply-To: <20010902150023.U5126@parcelfarce.linux.theplanet.co.uk>
On Sun, Sep 02, 2001 at 03:00:23PM +0100, Matthew Wilcox wrote:
> On Sun, Sep 02, 2001 at 10:55:38AM +0200, thunder7@xs4all.nl wrote:
> > ReiserFS version 3.6.25
> > bonnie[163]: Unaligned data reference 28
>
> > which makes the error somewhere around here in
> > fs/reiserfs/namei.c, function reiserfs_add_entry, after call to
> > padd_item, before call to reiserfs_find_entry:
> >
> > padd_item ((char *)(deh + 1), ROUND_UP (namelen), namelen);
> >
> > /* entry is ready to be pasted into tree, set 'visibility' and 'stat data in entry' attributes */
> > mark_de_without_sd (deh);
> > visible ? mark_de_visible (deh) : mark_de_hidden (deh);
> >
> > /* find the proper place for the new entry */
> > memset (bit_string, 0, sizeof (bit_string));
> > de.de_gen_number_bit_string = (char *)bit_string;
> > retval = reiserfs_find_entry (dir, name, namelen, &path, &de);
>
> I suspect mark_de_without_sd is an inlined function/macro and this will
> be where the unaligned data reference is happening.
>
Correct. And the comments just above there about alignment are very
enlightening; it seems that the IBM/S390 architecture has some special
needs, and I just tested that my PA-RISC kernel has the same needs.
Thus I am able to present a real bugfix.
This patch allows me to run bonnie on a reiserfs partition with pa-risc
linux.
--- linux/include/linux/reiserfs_fs.h Sun Sep 2 21:54:25 2001
+++ linux-new/include/linux/reiserfs_fs.h Sun Sep 2 20:47:27 2001
@@ -924,7 +924,7 @@
#define DEH_Visible 2
/* 64 bit systems (and the S/390) need to be aligned explicitly -jdm */
-#if BITS_PER_LONG == 64 || defined(__s390__)
+#if BITS_PER_LONG == 64 || defined(__s390__) || defined(__hppa__)
# define ADDR_UNALIGNED_BITS (3)
#endif
This applies to linux-2.4.9-pa13 with
endian-safe-reiserfs-for-2.4.8.patch and to 2.4.9-ac5.
Please apply,
Jurriaan
--
It is well to remember, my son, that the entire population of the
universe, with one trifling exception, is composed of others.
John Andrew Holmes
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 0.98 0.83 0.37
WARNING: multiple messages have this Message-ID (diff)
From: thunder7@xs4all.nl
To: parisc-linux@lists.parisc-linux.org
Cc: linux-kernel@vger.kernel.org
Subject: [SOLVED + PATCH]: documented Oops running big-endian reiserfs on parisc architecture
Date: Sun, 2 Sep 2001 19:57:17 +0200 [thread overview]
Message-ID: <20010902195717.A21209@middle.of.nowhere> (raw)
In-Reply-To: <20010902105538.A15344@middle.of.nowhere> <20010902150023.U5126@parcelfarce.linux.theplanet.co.uk>
In-Reply-To: <20010902150023.U5126@parcelfarce.linux.theplanet.co.uk>
On Sun, Sep 02, 2001 at 03:00:23PM +0100, Matthew Wilcox wrote:
> On Sun, Sep 02, 2001 at 10:55:38AM +0200, thunder7@xs4all.nl wrote:
> > ReiserFS version 3.6.25
> > bonnie[163]: Unaligned data reference 28
>
> > which makes the error somewhere around here in
> > fs/reiserfs/namei.c, function reiserfs_add_entry, after call to
> > padd_item, before call to reiserfs_find_entry:
> >
> > padd_item ((char *)(deh + 1), ROUND_UP (namelen), namelen);
> >
> > /* entry is ready to be pasted into tree, set 'visibility' and 'stat data in entry' attributes */
> > mark_de_without_sd (deh);
> > visible ? mark_de_visible (deh) : mark_de_hidden (deh);
> >
> > /* find the proper place for the new entry */
> > memset (bit_string, 0, sizeof (bit_string));
> > de.de_gen_number_bit_string = (char *)bit_string;
> > retval = reiserfs_find_entry (dir, name, namelen, &path, &de);
>
> I suspect mark_de_without_sd is an inlined function/macro and this will
> be where the unaligned data reference is happening.
>
Correct. And the comments just above there about alignment are very
enlightening; it seems that the IBM/S390 architecture has some special
needs, and I just tested that my PA-RISC kernel has the same needs.
Thus I am able to present a real bugfix.
This patch allows me to run bonnie on a reiserfs partition with pa-risc
linux.
--- linux/include/linux/reiserfs_fs.h Sun Sep 2 21:54:25 2001
+++ linux-new/include/linux/reiserfs_fs.h Sun Sep 2 20:47:27 2001
@@ -924,7 +924,7 @@
#define DEH_Visible 2
/* 64 bit systems (and the S/390) need to be aligned explicitly -jdm */
-#if BITS_PER_LONG == 64 || defined(__s390__)
+#if BITS_PER_LONG == 64 || defined(__s390__) || defined(__hppa__)
# define ADDR_UNALIGNED_BITS (3)
#endif
This applies to linux-2.4.9-pa13 with
endian-safe-reiserfs-for-2.4.8.patch and to 2.4.9-ac5.
Please apply,
Jurriaan
--
It is well to remember, my son, that the entire population of the
universe, with one trifling exception, is composed of others.
John Andrew Holmes
GNU/Linux 2.4.9-ac5 SMP/ReiserFS 2x1402 bogomips load av: 0.98 0.83 0.37
next prev parent reply other threads:[~2001-09-02 17:57 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-02 8:55 [parisc-linux] documented Oops running big-endian reiserfs on parisc architecture thunder7
2001-09-02 8:55 ` thunder7
2001-09-02 14:00 ` [parisc-linux] " Matthew Wilcox
2001-09-02 17:57 ` thunder7 [this message]
2001-09-02 17:57 ` [SOLVED + PATCH]: " thunder7
2001-09-02 22:34 ` [parisc-linux] " Richard Zidlicky
2001-09-02 22:34 ` Richard Zidlicky
2001-09-02 23:08 ` [parisc-linux] " David S. Miller
2001-09-02 23:08 ` David S. Miller
2001-09-02 23:29 ` [parisc-linux] Re: [SOLVED + PATCH]: documented Oops running big-endian reiserfs Alan Cox
2001-09-04 1:38 ` [parisc-linux] Re: [SOLVED + PATCH]: documented Oops running big-endian reiserfs on parisc architecture Jeff Mahoney
2001-09-04 1:38 ` Jeff Mahoney
2001-09-02 23:04 ` [parisc-linux] " David S. Miller
2001-09-02 23:25 ` Matthew Wilcox
2001-09-02 23:26 ` David S. Miller
2001-09-02 23:31 ` Alan Cox
2001-09-03 10:52 ` [parisc-linux] " thunder7
2001-09-03 10:52 ` thunder7
2001-09-05 1:01 ` [parisc-linux] " Randolph Chung
2001-09-03 10:25 ` [parisc-linux] " Hans Reiser
2001-09-03 10:25 ` Hans Reiser
2001-09-03 14:30 ` [parisc-linux] " Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010902195717.A21209@middle.of.nowhere \
--to=thunder7@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.