diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2017-06-21 19:46:47 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-29 20:09:12 -0400 |
commit | 4f2ed694148131f93baffca9e68b0cd8dcc96c38 (patch) | |
tree | 584c9391913c98f5b88e3f8eaf4b86d9837265c0 /fs/minix | |
parent | cc658db47d6897a8571fb6227f59d1d18151b0b2 (diff) | |
download | linux-4f2ed694148131f93baffca9e68b0cd8dcc96c38.tar.gz linux-4f2ed694148131f93baffca9e68b0cd8dcc96c38.tar.bz2 linux-4f2ed694148131f93baffca9e68b0cd8dcc96c38.zip |
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>
Diffstat (limited to 'fs/minix')
-rw-r--r-- | fs/minix/itree_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |