[PATCH] reiserfs: fix savelinks on bigendian platforms

From: Oleg Drokin (green_at_namesys.com)
Date: 07/31/03

  • Next message: Benjamin Herrenschmidt: "Re: mremap sleeping in incorrect context"
    Date:	Thu, 31 Jul 2003 17:37:07 +0400
    To: marcelo@conectiva.com.br
    
    

    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);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Benjamin Herrenschmidt: "Re: mremap sleeping in incorrect context"

    Relevant Pages

    • [PATCH] [2.5] reiserfs: fix savelinks on bigendian arches
      ... lost or half truncated files. ... The patch is against 2.6.0-test2 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [parisc-linux] Re: [PATCH 3/9] mm: parisc pte atomicity
      ... using your own tmpalias area sounds much better than getting ... I've simply not wrapped my head around the races, ... it looks like we agree that my patch is necessary and valid as is; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: keyboard - was: Re: Linux 2.6.0-test4
      ... >> I was able to get the key unstuck by switching back and forth between ... I rebuild my kernel including your patch; ... I'll get back to you once I verify that the problem doesn't occur ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test8/test9 io scheduler needs tuning?
      ... interactivity with regard to desktop use. ... Going to improve the time info output of the ddd loops to get better data and ... with the patch the hang reported earlier was not encountered again so ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CFT][PATCH] 2.6.4-rc1 remove x86 boot page tables
      ... > For VISWS I think you actually need to turn paging off explicitly. ... The patch will need a few tweaks but it should be fairly straight forward. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)