From: Christopher Hoover <ch@murgatroid.com>
To: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Cc: ch@murgatroid.com
Subject: [PATCH] 2.5.69 eventpollfs configuration option
Date: Wed, 14 May 2003 01:28:23 -0700 [thread overview]
Message-ID: <20030514012823.A4128@heavens.murgatroid.com> (raw)
Here's a patch to drop some more text/data/bss out of 2.5. This time
the ``victim'' is eventpollfs (epoll).
Continuing to put 2.5 on a diet so it'll fit nicely on a 4 MiB Ceiva ...
-ch
mailto:ch(at)murgatroid.com
mailto:ch(at)hpl.hp.com
diff -X /home/ch/src/dontdiff.txt -Naurp linux-2.5.69.orig/kernel/sys.c linux-2.5.69/kernel/sys.c
--- linux-2.5.69.orig/kernel/sys.c 2003-05-04 16:53:02.000000000 -0700
+++ linux-2.5.69/kernel/sys.c 2003-05-14 01:08:14.000000000 -0700
@@ -226,6 +226,9 @@ cond_syscall(sys_shutdown)
cond_syscall(sys_sendmsg)
cond_syscall(sys_recvmsg)
cond_syscall(sys_socketcall)
+cond_syscall(sys_epoll_create)
+cond_syscall(sys_epoll_ctl)
+cond_syscall(sys_epoll_wait)
static int set_one_prio(struct task_struct *p, int niceval, int error)
{
diff -X /home/ch/src/dontdiff.txt -Naurp linux-2.5.69.orig/fs/Kconfig linux-2.5.69/fs/Kconfig
--- linux-2.5.69.orig/fs/Kconfig 2003-05-04 16:53:32.000000000 -0700
+++ linux-2.5.69/fs/Kconfig 2003-05-14 01:14:26.000000000 -0700
@@ -835,6 +835,13 @@ config RAMFS
say M here and read <file:Documentation/modules.txt>. The module
will be called ramfs.
+config EVENTPOLLFS
+ bool "Efficient event polling (epoll)"
+ default y
+ ---help---
+ Say Y if you want epoll support which is an efficent event
+ polling implementation.
+
endmenu
menu "Miscellaneous filesystems"
diff -X /home/ch/src/dontdiff.txt -Naurp linux-2.5.69.orig/fs/Makefile linux-2.5.69/fs/Makefile
--- linux-2.5.69.orig/fs/Makefile 2003-05-04 16:53:32.000000000 -0700
+++ linux-2.5.69/fs/Makefile 2003-05-14 01:08:14.000000000 -0700
@@ -10,7 +10,9 @@ obj-y := open.o read_write.o file_table.
namei.o fcntl.o ioctl.o readdir.o select.o fifo.o locks.o \
dcache.o inode.o attr.o bad_inode.o file.o dnotify.o \
filesystems.o namespace.o seq_file.o xattr.o libfs.o \
- fs-writeback.o mpage.o direct-io.o aio.o eventpoll.o
+ fs-writeback.o mpage.o direct-io.o aio.o
+
+obj-$(CONFIG_EVENTPOLLFS) += eventpoll.o
obj-$(CONFIG_COMPAT) += compat.o
diff -X /home/ch/src/dontdiff.txt -Naurp linux-2.5.69.orig/include/linux/eventpoll.h linux-2.5.69/include/linux/eventpoll.h
--- linux-2.5.69.orig/include/linux/eventpoll.h 2003-05-04 16:53:14.000000000 -0700
+++ linux-2.5.69/include/linux/eventpoll.h 2003-05-14 01:08:14.000000000 -0700
@@ -40,12 +40,21 @@ asmlinkage long sys_epoll_ctl(int epfd,
asmlinkage long sys_epoll_wait(int epfd, struct epoll_event *events, int maxevents,
int timeout);
+#ifdef CONFIG_EVENTPOLLFS
+
/* Used to initialize the epoll bits inside the "struct file" */
void eventpoll_init_file(struct file *file);
/* Used in fs/file_table.c:__fput() to unlink files from the eventpoll interface */
void eventpoll_release(struct file *file);
+#else
+
+static inline void eventpoll_init_file(struct file *file) {}
+static inline void eventpoll_release(struct file *file) {}
+
+#endif
+
#endif /* #ifdef __KERNEL__ */
#endif /* #ifndef _LINUX_EVENTPOLL_H */
next reply other threads:[~2003-05-14 8:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 8:28 Christopher Hoover [this message]
2003-05-14 8:41 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030514012823.A4128@heavens.murgatroid.com \
--to=ch@murgatroid.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®