Skip to content

Commit 4f2ed69

Browse files
dvlasenkAl Viro
authored andcommitted
minix: Deinline get_block, save 2691 bytes
This function compiles to 1402 bytes of machine code. It has 2 callsites, and also a not-inlined copy gets created by compiler anyway since its address gets passed as a parameter to block_truncate_page(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> CC: Al Viro <viro@zeniv.linux.org.uk> CC: linux-fsdevel@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent cc658db commit 4f2ed69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/minix/itree_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static inline int splice_branch(struct inode *inode,
142142
return -EAGAIN;
143143
}
144144

145-
static inline int get_block(struct inode * inode, sector_t block,
145+
static int get_block(struct inode * inode, sector_t block,
146146
struct buffer_head *bh, int create)
147147
{
148148
int err = -EIO;

0 commit comments

Comments
 (0)