Skip to content

Commit

Permalink
more reiserfs endianness annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 26, 2007
1 parent 60262e5 commit 87588dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/reiserfs/stree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 87588dd

Please sign in to comment.