diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-26 17:47:03 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 11:11:58 -0700 |
commit | 87588dd6663b6f306f03f2deaec0d0fd3f0cb26e (patch) | |
tree | 85fd6c0107ec527087ea285766cec4bf2f07bffa /fs/reiserfs | |
parent | 60262e58e305f27d05eefeda172117521514f364 (diff) | |
download | kernel_samsung_tuna-87588dd6663b6f306f03f2deaec0d0fd3f0cb26e.zip kernel_samsung_tuna-87588dd6663b6f306f03f2deaec0d0fd3f0cb26e.tar.gz kernel_samsung_tuna-87588dd6663b6f306f03f2deaec0d0fd3f0cb26e.tar.bz2 |
more reiserfs endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/stree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index b6f1259..981027d 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) { |