fs: remaining users of aligned-endian get/put helpers
Subsystems (3)
PATCH 17/21 fs: remaining users of aligned-endian get/put helpers
Signed-off-by Harvey Harrison <[email protected]>
--- fs/hfsplus/wrapper.c | 6 +++--- fs/isofs/compress.c | 4 ++-- fs/partitions/acorn.c | 2 +- fs/qnx4/inode.c | 2 +- fs/reiserfs/super.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
fs/hfsplus/wrapper.c +3 -3
@@ -35,17 +35,17 @@ static int hfsplus_read_mdb(void *bufptr, struct hfsplus_wd *wd) sig != cpu_to_be16(HFSPLUS_VOLHEAD_SIGX))return 0 ; - attrib =be16_to_cpu (*(__be16 *)(bufptr +HFSP_WRAPOFF_ATTRIB )); + attrib =get_be16 (bufptr +HFSP_WRAPOFF_ATTRIB );if (!(attrib &HFSP_WRAP_ATTRIB_SLOCK ) || !(attrib &HFSP_WRAP_ATTRIB_SPARED ))return 0 ; - wd->ablk_size =be32_to_cpu (*(__be32 *)(bufptr +HFSP_WRAPOFF_ABLKSIZE )); + wd->ablk_size =get_be32 (bufptr +HFSP_WRAPOFF_ABLKSIZE );if (wd->ablk_size <HFSPLUS_SECTOR_SIZE )return 0 ;if (wd->ablk_size %HFSPLUS_SECTOR_SIZE )return 0 ; - wd->ablk_start =be16_to_cpu (*(__be16 *)(bufptr +HFSP_WRAPOFF_ABLKSTART )); + wd->ablk_start =get_be16 (bufptr +HFSP_WRAPOFF_ABLKSTART ); extent =get_unaligned_be32 (bufptr +HFSP_WRAPOFF_EMBEDEXT ); wd->embed_start = (extent >>16 ) &0xFFFF ;
fs/isofs/compress.c +2 -2
@@ -124,7 +124,7 @@ static int zisofs_readpage(struct file *file, struct page *page)brelse (ptrbh[1 ]); goto eio; } - cstart =le32_to_cpu (*(__le32 *)(bh->b_data + (blockptr & bufmask))); + cstart =get_le32 (bh->b_data + (blockptr & bufmask));if ( indexblocks ==2 ) {/* We just crossed a block boundary. Switch to the next block */
@@ -136,7 +136,7 @@ static int zisofs_readpage(struct file *file, struct page *page) goto eio; } } - cend =le32_to_cpu (*(__le32 *)(bh->b_data + (blockendptr & bufmask))); + cend =get_le32 (bh->b_data + (blockendptr & bufmask));brelse (bh);if (cstart > cend)
fs/partitions/acorn.c +1 -1
@@ -344,7 +344,7 @@ static inline int valid_ics_sector(const unsigned char *data)for (i =0 , sum =0x50617274 ; i <508 ; i++) sum += data[i]; - sum -=le32_to_cpu (*(__le32 *)(&data[508 ])); + sum -=get_le32 (&data[508 ]);return sum ==0 ; }
fs/qnx4/inode.c +1 -1
@@ -372,7 +372,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)printk ("qnx4: unable to read the superblock\n" ); goto outnobh; } -if (le32_to_cpup ((__le32 *) bh->b_data) !=QNX4_SUPER_MAGIC ) { +if (get_le32 (bh->b_data) !=QNX4_SUPER_MAGIC ) {if (!silent)printk ("qnx4: wrong fsid in superblock.\n" ); goto out;
fs/reiserfs/super.c +1 -1
@@ -221,7 +221,7 @@ static int finish_unfinished(struct super_block *s)/* reiserfs_iget needs k_dirid and k_objectid only */ item =B_I_PITEM (bh, ih); - obj_key.on_disk_key.k_dir_id =le32_to_cpu (*(__le32 *) item); + obj_key.on_disk_key.k_dir_id =get_le32 (item); obj_key.on_disk_key.k_objectid =le32_to_cpu (ih->ih_key.k_objectid); obj_key.on_disk_key.k_offset =0 ;
Signature · 1 line
1.5.5.1.570.g26b5e