Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] tiny: Uninline some open.c functions

uninline some open.c functions

add/remove: 3/0 grow/shrink: 0/6 up/down: 679/-1166 (-487)
function old new delta
do_sys_truncate - 336 +336
do_sys_ftruncate - 317 +317
__put_unused_fd - 26 +26
put_unused_fd 57 49 -8
sys_close 150 119 -31
sys_ftruncate64 260 26 -234
sys_ftruncate 272 24 -248
sys_truncate 339 25 -314
sys_truncate64 336 5 -331

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Matt Mackall and committed by
Linus Torvalds
b01ec0ef d960600d

+3 -3
+3 -3
fs/open.c
··· 217 217 return err; 218 218 } 219 219 220 - static inline long do_sys_truncate(const char __user * path, loff_t length) 220 + static long do_sys_truncate(const char __user * path, loff_t length) 221 221 { 222 222 struct nameidata nd; 223 223 struct inode * inode; ··· 283 283 return do_sys_truncate(path, (long)length); 284 284 } 285 285 286 - static inline long do_sys_ftruncate(unsigned int fd, loff_t length, int small) 286 + static long do_sys_ftruncate(unsigned int fd, loff_t length, int small) 287 287 { 288 288 struct inode * inode; 289 289 struct dentry *dentry; ··· 971 971 972 972 EXPORT_SYMBOL(get_unused_fd); 973 973 974 - static inline void __put_unused_fd(struct files_struct *files, unsigned int fd) 974 + static void __put_unused_fd(struct files_struct *files, unsigned int fd) 975 975 { 976 976 struct fdtable *fdt = files_fdtable(files); 977 977 __FD_CLR(fd, fdt->open_fds);