Skip to contentSkip to conversation

minix: Deinline get_block, save 2691 bytes

PATCH New Denys Vlasenko 1 participant 1 message Jun 21, 2017 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 fs/minix/itree_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/minix/itree_common.c +1 -1
index 4c57c9a..2325777 100644
@@ -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;
Signature · 1 line
1.8.3.1