Commit b01ec0ef authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[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: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d960600d
...@@ -217,7 +217,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, ...@@ -217,7 +217,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
return err; return err;
} }
static inline long do_sys_truncate(const char __user * path, loff_t length) static long do_sys_truncate(const char __user * path, loff_t length)
{ {
struct nameidata nd; struct nameidata nd;
struct inode * inode; struct inode * inode;
...@@ -283,7 +283,7 @@ asmlinkage long sys_truncate(const char __user * path, unsigned long length) ...@@ -283,7 +283,7 @@ asmlinkage long sys_truncate(const char __user * path, unsigned long length)
return do_sys_truncate(path, (long)length); return do_sys_truncate(path, (long)length);
} }
static inline long do_sys_ftruncate(unsigned int fd, loff_t length, int small) static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
{ {
struct inode * inode; struct inode * inode;
struct dentry *dentry; struct dentry *dentry;
...@@ -971,7 +971,7 @@ out: ...@@ -971,7 +971,7 @@ out:
EXPORT_SYMBOL(get_unused_fd); EXPORT_SYMBOL(get_unused_fd);
static inline void __put_unused_fd(struct files_struct *files, unsigned int fd) static void __put_unused_fd(struct files_struct *files, unsigned int fd)
{ {
struct fdtable *fdt = files_fdtable(files); struct fdtable *fdt = files_fdtable(files);
__FD_CLR(fd, fdt->open_fds); __FD_CLR(fd, fdt->open_fds);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment