Commit 5ebb0457 authored by Hans Reiser's avatar Hans Reiser Committed by Linus Torvalds

[PATCH] ReiserFS endianness fix

This patch is to fix a lookup problem on bigendian platforms
parent 0a6bfe99
......@@ -1207,7 +1207,8 @@ static int reiserfs_find_actor( struct inode *inode,
struct reiserfs_iget4_args *args;
args = opaque;
return INODE_PKEY( inode ) -> k_dir_id == args -> objectid;
/* args is already in CPU order */
return le32_to_cpu(INODE_PKEY(inode)->k_dir_id) == args -> objectid;
}
struct inode * reiserfs_iget (struct super_block * s, const struct cpu_key * key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment