From: Andrew Morton - uninline ufs_clear_block() - it has two callsites - coding cleanups Cc: Evgeniy Dushistov Signed-off-by: Andrew Morton --- fs/ufs/inode.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff -puN fs/ufs/inode.c~ufs-right-block-allocation-fixes fs/ufs/inode.c --- devel/fs/ufs/inode.c~ufs-right-block-allocation-fixes 2006-05-14 02:51:30.000000000 -0700 +++ devel-akpm/fs/ufs/inode.c 2006-05-14 02:51:30.000000000 -0700 @@ -161,7 +161,7 @@ out: return ret; } -static inline void ufs_clear_block(struct inode *inode, struct buffer_head *bh) +static void ufs_clear_block(struct inode *inode, struct buffer_head *bh) { lock_buffer(bh); memset(bh->b_data, 0, inode->i_sb->s_blocksize); @@ -172,7 +172,6 @@ static inline void ufs_clear_block(struc sync_dirty_buffer(bh); } - static struct buffer_head * ufs_inode_getfrag (struct inode *inode, unsigned int fragment, unsigned int new_fragment, unsigned int required, int *err, int metadata, long *phys, int *new) @@ -216,7 +215,7 @@ repeat: brelse (result); goto repeat; } else { - *phys = tmp+blockoff; + *phys = tmp + blockoff; return NULL; } } @@ -275,7 +274,7 @@ repeat: result = sb_getblk(inode->i_sb, tmp + blockoff); ufs_clear_block(inode, result); } else { - *phys = tmp+blockoff; + *phys = tmp + blockoff; result = NULL; *err = 0; *new = 1; @@ -342,7 +341,7 @@ repeat: brelse (result); goto repeat; } else { - *phys = tmp+blockoff; + *phys = tmp + blockoff; goto out; } } @@ -363,7 +362,7 @@ repeat: result = sb_getblk(sb, tmp + blockoff); ufs_clear_block(inode, result); } else { - *phys = tmp+blockoff; + *phys = tmp + blockoff; *new = 1; } _