pentoo-overlay/sys-kernel/pentoo-sources/files/openfile_log-36.patch
grimmlin ac96cb4193 pentoo-sources: bump to 2.6.36-r10
- some cleanup
 - added patch default to 256M vmalloc if >1Gb ram
 - fix openfile_log on .36
2010-12-31 15:27:46 +00:00

27 lines
619 B
Diff

--- fs/open.c.orig 2010-12-31 16:17:55.000000000 +0100
+++ fs/open.c 2010-12-31 16:17:44.000000000 +0100
@@ -932,6 +932,15 @@
EXPORT_SYMBOL(fd_install);
+static int __init setup_logfiles(char *str)
+{
+ get_option(&str, &open_logfiles);
+ return 1;
+}
+
+__setup("logfiles=", setup_logfiles);
+
+
long do_sys_open(int dfd, const char __user *filename, int flags, int mode)
{
char *tmp = getname(filename);
@@ -945,6 +954,8 @@
put_unused_fd(fd);
fd = PTR_ERR(f);
} else {
+ if (open_logfiles)
+ printk(KERN_DEBUG "FILE %s\n", filename);
fsnotify_open(f);
fd_install(fd, f);
}