From: Al Viro Date: Thu, 26 Jul 2007 16:47:03 +0000 (+0100) Subject: more reiserfs endianness annotations X-Git-Tag: v2.6.23-rc2~232 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=87588dd6663b6f306f03f2deaec0d0fd3f0cb26e;p=~emulex%2Finfiniband.git more reiserfs endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index b6f12593c39..981027d1187 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c @@ -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) {