Messages in this thread | | | Date | Tue, 13 Nov 2012 11:22:04 +0400 | From | Cyrill Gorcunov <> | Subject | Re: [patch 4/7] fs, notify: Add procfs fdinfo helper v4 |
| |
On Mon, Nov 12, 2012 at 05:00:17PM -0800, Andrew Morton wrote: > > > > static const struct file_operations inotify_fops = { > > +#ifdef CONFIG_PROC_FS > > + .show_fdinfo = inotify_show_fdinfo, > > +#endif > > .poll = inotify_poll, > > .read = inotify_read, > > .fasync = inotify_fasync, > > @@ -427,6 +428,9 @@ static long fanotify_ioctl(struct file * > > } > > > > static const struct file_operations fanotify_fops = { > > +#ifdef CONFIG_PROC_FS > > + .show_fdinfo = fanotify_show_fdinfo, > > +#endif > > .poll = fanotify_poll, > > .read = fanotify_read, > > .write = fanotify_write, > > Then remove these ifdefs. > > That's if you can be bothered. It's a bit of a party trick which > doesn't make things much clearer IMO.
Sure, i'll update.
| |