mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[PATCH] reiserfs endianness: annotate little-endian objects
little-endian objects annotated as such; again, obviously no changes of resulting code, we only replace __u16 with __le16, etc. in relevant places. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Cc: <reiserfs-dev@namesys.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
6a3a16f2ef
commit
3e8962be91
12 changed files with 138 additions and 130 deletions
|
@ -173,7 +173,7 @@ static inline void fix_tail_page_for_writing(struct page *page) {
|
|||
done already or non-hole position has been found in the indirect item */
|
||||
static inline int allocation_needed (int retval, b_blocknr_t allocated,
|
||||
struct item_head * ih,
|
||||
__u32 * item, int pos_in_item)
|
||||
__le32 * item, int pos_in_item)
|
||||
{
|
||||
if (allocated)
|
||||
return 0;
|
||||
|
@ -278,7 +278,7 @@ research:
|
|||
bh = get_last_bh (&path);
|
||||
ih = get_ih (&path);
|
||||
if (is_indirect_le_ih (ih)) {
|
||||
__u32 * ind_item = (__u32 *)B_I_PITEM (bh, ih);
|
||||
__le32 * ind_item = (__le32 *)B_I_PITEM (bh, ih);
|
||||
|
||||
/* FIXME: here we could cache indirect item or part of it in
|
||||
the inode to avoid search_by_key in case of subsequent
|
||||
|
@ -581,7 +581,7 @@ int reiserfs_get_block (struct inode * inode, sector_t block,
|
|||
struct cpu_key key;
|
||||
struct buffer_head * bh, * unbh = NULL;
|
||||
struct item_head * ih, tmp_ih;
|
||||
__u32 * item;
|
||||
__le32 * item;
|
||||
int done;
|
||||
int fs_gen;
|
||||
struct reiserfs_transaction_handle *th = NULL;
|
||||
|
@ -746,7 +746,7 @@ start_trans:
|
|||
done = 0;
|
||||
do {
|
||||
if (is_statdata_le_ih (ih)) {
|
||||
__u32 unp = 0;
|
||||
__le32 unp = 0;
|
||||
struct cpu_key tmp_key;
|
||||
|
||||
/* indirect item has to be inserted */
|
||||
|
@ -2067,7 +2067,7 @@ static int map_block_for_writepage(struct inode *inode,
|
|||
struct item_head tmp_ih ;
|
||||
struct item_head *ih ;
|
||||
struct buffer_head *bh ;
|
||||
__u32 *item ;
|
||||
__le32 *item ;
|
||||
struct cpu_key key ;
|
||||
INITIALIZE_PATH(path) ;
|
||||
int pos_in_item ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue