From: Denys Vlasenko Date: Wed, 21 Jun 2017 17:46:47 +0000 (+0200) Subject: minix: Deinline get_block, save 2691 bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f2ed694148131f93baffca9e68b0cd8dcc96c38;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 CC: Al Viro CC: linux-fsdevel@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Al Viro --- diff --git a/fs/minix/itree_common.c b/fs/minix/itree_common.c index 4c57c9af6946..2d1ca08870f7 100644 --- a/fs/minix/itree_common.c +++ b/fs/minix/itree_common.c @@ -142,7 +142,7 @@ changed: 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;