bfs endianness annotations
PATCH 1/1 bfs endianness annotations
Author: Alexey Dobriyan <[email protected]>
Signed-off-by Alexey Dobriyan <[email protected]>
Signed-off-by Al Viro <[email protected]>
----
[Note: there's a followup to that one, cleaning up iget() abuses in bfs/inode]
fs/bfs/dir.c | 2 +- fs/bfs/inode.c | 2 +- include/linux/bfs_fs.h | 42 +++++++++++++++++++++--------------------- 3 files changed, 23 insertions(+), 23 deletions(-)
fs/bfs/dir.c +1 -1
@@ -108,7 +108,7 @@ static int bfs_create(struct inode * dir inode->i_mapping->a_ops = &bfs_aops; inode->i_mode = mode; inode->i_ino = ino; -BFS_I (inode)->i_dsk_ino =cpu_to_le16 (ino); +BFS_I (inode)->i_dsk_ino = ino;BFS_I (inode)->i_sblock =0 ;BFS_I (inode)->i_eblock =0 ;insert_inode_hash (inode);
fs/bfs/inode.c +1 -1
@@ -357,7 +357,7 @@ static int bfs_fill_super(struct super_b } info->si_blocks = (le32_to_cpu (bfs_sb->s_end) +1 )>>BFS_BSIZE_BITS ;/* for statfs(2) */ - info->si_freeb = (le32_to_cpu (bfs_sb->s_end) +1 -cpu_to_le32 (bfs_sb->s_start))>>BFS_BSIZE_BITS ; + info->si_freeb = (le32_to_cpu (bfs_sb->s_end) +1 -le32_to_cpu (bfs_sb->s_start))>>BFS_BSIZE_BITS ; info->si_freei =0 ; info->si_lf_eblk =0 ; info->si_lf_sblk =0 ;
include/linux/bfs_fs.h +21 -21
72 lines not on this page · raw message