[PATCH] reiserfs: max_key fix

This patch fixes a bug introduced by Al Viro's patch: [patch 136/174]
reiserfs endianness: clone struct reiserfs_key

The problem is MAX_KEY and MAX_IN_CORE_KEY defined in this patch do not
look equal from reiserfs comp_key's point of view. This caused reiserfs'
sanity check to complain.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Vladimir Saveliev and committed by Linus Torvalds f359b74c 1808caff

+3 -2
-1
fs/reiserfs/stree.c
··· 230 __constant_cpu_to_le32(0xffffffff)},} 231 }; 232 233 - const struct in_core_key MAX_IN_CORE_KEY = {~0U, ~0U, ~0ULL>>4, 15}; 234 235 /* Get delimiting key of the buffer by looking for it in the buffers in the path, starting from the bottom 236 of the path, and going upwards. We must check the path's validity at each step. If the key is not in
··· 230 __constant_cpu_to_le32(0xffffffff)},} 231 }; 232 233 234 /* Get delimiting key of the buffer by looking for it in the buffers in the path, starting from the bottom 235 of the path, and going upwards. We must check the path's validity at each step. If the key is not in
+3 -1
fs/reiserfs/super.c
··· 164 165 /* compose key to look for "save" links */ 166 max_cpu_key.version = KEY_FORMAT_3_5; 167 - max_cpu_key.on_disk_key = MAX_IN_CORE_KEY; 168 max_cpu_key.key_length = 3; 169 170 #ifdef CONFIG_QUOTA
··· 164 165 /* compose key to look for "save" links */ 166 max_cpu_key.version = KEY_FORMAT_3_5; 167 + max_cpu_key.on_disk_key.k_dir_id = ~0U; 168 + max_cpu_key.on_disk_key.k_objectid = ~0U; 169 + set_cpu_key_k_offset (&max_cpu_key, ~0U); 170 max_cpu_key.key_length = 3; 171 172 #ifdef CONFIG_QUOTA