linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reiserfs: fix savelinks on bigendian platforms
@ 2003-07-31 13:37 Oleg Drokin
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-07-31 13:37 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

Hello!

    This small patch fixes a savelinks problem on bigendian platforms, where
    savelinks were not working at all because of incorrect cpu->disk endianness conversion.
    Savelinks are used on reiserfs to remember "truncate" and "unlink" events
    so that if crash happens in the middle of truncate/unlink, we do not endup with
    lost or half truncated files.

    Please pull from bk://namesys.com/bk/reiser3-linux-2.4-savelink-bigendian-fix

Diffstat:
 super.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Plain text patch:
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1048  -> 1.1049 
#	 fs/reiserfs/super.c	1.35    -> 1.36   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/07/31	green@angband.namesys.com	1.1049
# reiserfs: fix savelinks for bigendian arches.
#    Remove unneeded cpu->disk order conversion for savelink data.
# --------------------------------------------
#
diff -Nru a/fs/reiserfs/super.c b/fs/reiserfs/super.c
--- a/fs/reiserfs/super.c	Thu Jul 31 17:24:46 2003
+++ b/fs/reiserfs/super.c	Thu Jul 31 17:24:46 2003
@@ -284,7 +284,7 @@
     }
 
     /* body of "save" link */
-    link = cpu_to_le32 (INODE_PKEY (inode)->k_dir_id);
+    link = INODE_PKEY (inode)->k_dir_id;
 
     /* put "save" link inot tree */
     retval = reiserfs_insert_item (th, &path, &key, &ih, (char *)&link);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-31 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 13:37 [PATCH] reiserfs: fix savelinks on bigendian platforms Oleg Drokin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).