]> err.no Git - linux-2.6/commitdiff
more reiserfs endianness annotations
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 26 Jul 2007 16:47:03 +0000 (17:47 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 18:11:58 +0000 (11:11 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/stree.c

index b6f12593c39dd76a1cd2002c93466a9370f04957..981027d1187bb49f33b0798cd9cfb790a2d8e549 100644 (file)
@@ -1042,7 +1042,8 @@ static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, st
                pos = I_UNFM_NUM(&s_ih);
 
                while (le_ih_k_offset (&s_ih) + (pos - 1) * blk_size > n_new_file_length) {
-                   __u32 *unfm, block;
+                   __le32 *unfm;
+                   __u32 block;
 
                    /* Each unformatted block deletion may involve one additional
                     * bitmap block into the transaction, thereby the initial
@@ -1052,7 +1053,7 @@ static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, st
                        break;
                    }
 
-                   unfm = (__u32 *)B_I_PITEM(p_s_bh, &s_ih) + pos - 1;
+                   unfm = (__le32 *)B_I_PITEM(p_s_bh, &s_ih) + pos - 1;
                    block = get_block_num(unfm, 0);
 
                    if (block != 0) {