Fix adfs GET_FRAG_ID() on big-endian
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jun 2009 04:46:40 +0000 (00:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:14 +0000 (21:36 -0400)
Missing conversion to host-endian before doing shifts

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/map.c

index 92ab4fbc2031f6eaaff492954e84fb3d4ca93957..568081b93f732dce8c3b9f111a4446d369f22cf2 100644 (file)
@@ -62,7 +62,7 @@ static DEFINE_RWLOCK(adfs_map_lock);
 #define GET_FRAG_ID(_map,_start,_idmask)                               \
        ({                                                              \
                unsigned char *_m = _map + (_start >> 3);               \
-               u32 _frag = get_unaligned((u32 *)_m);                   \
+               u32 _frag = get_unaligned_le32(_m);                     \
                _frag >>= (_start & 7);                                 \
                _frag & _idmask;                                        \
        })