X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Ffile_table.c;h=43e9e1737de2cb365c954afeddfb64ae0433779b;hb=311120eca0013083f5eb0aff13ffb8aa9fdd050c;hp=fa7849fae134b371a80b90f95fda9e19bfb185b5;hpb=f46f6b20cb01508f5020142ff91021f8fb39550b;p=powerpc.git diff --git a/fs/file_table.c b/fs/file_table.c index fa7849fae1..43e9e1737d 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -16,6 +16,7 @@ #include #include #include +#include /* sysctl tunables... */ struct files_stat_struct files_stat = { @@ -88,7 +89,6 @@ struct file *get_empty_filp(void) rwlock_init(&f->f_owner.lock); /* f->f_version: 0 */ INIT_LIST_HEAD(&f->f_list); - f->f_maxcount = INT_MAX; return f; over: @@ -126,6 +126,8 @@ void fastcall __fput(struct file *file) struct inode *inode = dentry->d_inode; might_sleep(); + + fsnotify_close(file); /* * The function eventpoll_release() should be the first called * in the file cleanup chain.