mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] fs/inotify.c: cleanups
@ 2006-05-01  7:11 Adrian Bunk
  2006-05-01 14:12 ` Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-05-01  7:11 UTC (permalink / raw)
  To: Andrew Morton; +Cc: John McCutchan, rml, linux-kernel

This patch contains the following possible cleanups:
- make the following needlessly global variables static:
  - inotify_max_user_instances
  - inotify_max_user_watches
  - inotify_max_queued_events
- remove the following unused EXPORT_SYMBOL_GPL's:
  - inotify_get_cookie
  - inotify_unmount_inodes
  - inotify_inode_is_dead

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: John McCutchan <john@johnmccutchan.com>

---

This patch was already sent on:
- 23 Apr 2006

 fs/inotify.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

--- linux-2.6.17-rc1-mm3-full/fs/inotify.c.old	2006-04-23 12:12:52.000000000 +0200
+++ linux-2.6.17-rc1-mm3-full/fs/inotify.c	2006-04-23 12:18:46.000000000 +0200
@@ -45,9 +45,9 @@
 static struct vfsmount *inotify_mnt __read_mostly;
 
 /* these are configurable via /proc/sys/fs/inotify/ */
-int inotify_max_user_instances __read_mostly;
-int inotify_max_user_watches __read_mostly;
-int inotify_max_queued_events __read_mostly;
+static int inotify_max_user_instances __read_mostly;
+static int inotify_max_user_watches __read_mostly;
+static int inotify_max_queued_events __read_mostly;
 
 /*
  * Lock ordering:
@@ -627,7 +627,6 @@
 {
 	return atomic_inc_return(&inotify_cookie);
 }
-EXPORT_SYMBOL_GPL(inotify_get_cookie);
 
 /**
  * inotify_unmount_inodes - an sb is unmounting.  handle any watched inodes.
@@ -706,7 +705,6 @@
 		spin_lock(&inode_lock);
 	}
 }
-EXPORT_SYMBOL_GPL(inotify_unmount_inodes);
 
 /**
  * inotify_inode_is_dead - an inode has been deleted, cleanup any watches
@@ -725,7 +723,6 @@
 	}
 	mutex_unlock(&inode->inotify_mutex);
 }
-EXPORT_SYMBOL_GPL(inotify_inode_is_dead);
 
 /* Device Interface */
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] fs/inotify.c: cleanups
  2006-05-01  7:11 [2.6 patch] fs/inotify.c: cleanups Adrian Bunk
@ 2006-05-01 14:12 ` Robert Love
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Love @ 2006-05-01 14:12 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Andrew Morton, John McCutchan, linux-kernel, rml

On Mon, 2006-05-01 at 09:11 +0200, Adrian Bunk wrote:
> This patch contains the following possible cleanups:
> - make the following needlessly global variables static:
>   - inotify_max_user_instances
>   - inotify_max_user_watches
>   - inotify_max_queued_events
> - remove the following unused EXPORT_SYMBOL_GPL's:
>   - inotify_get_cookie
>   - inotify_unmount_inodes
>   - inotify_inode_is_dead
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> Acked-by: John McCutchan <john@johnmccutchan.com>

Acked-by: Robert Love <rml@novell.com>

	Robert Love



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-01 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01  7:11 [2.6 patch] fs/inotify.c: cleanups Adrian Bunk
2006-05-01 14:12 ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome