Skip to content

Commit

Permalink
minix: Deinline get_block, save 2691 bytes
Browse files Browse the repository at this point in the history
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 <[email protected]>
CC: Al Viro <[email protected]>
CC: [email protected]
CC: [email protected]
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dvlasenk authored and Al Viro committed Jun 30, 2017
1 parent cc658db commit 4f2ed69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/minix/itree_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static inline int splice_branch(struct inode *inode,
return -EAGAIN;
}

static inline int get_block(struct inode * inode, sector_t block,
static int get_block(struct inode * inode, sector_t block,
struct buffer_head *bh, int create)
{
int err = -EIO;
Expand Down

0 comments on commit 4f2ed69

Please sign in to comment.