Skip to contentSkip to conversation

fs/inode.c: make iprune_mutex static

PATCH New Adrian Bunk 1 participant 1 message Feb 20, 2006 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/inode.c: make iprune_mutex static

There's no reason for iprune_mutex being global.

---

 fs/inode.c         |    2 +-
 include/linux/fs.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
include/linux/fs.h renamed from include/linux/fs.h.old +0 -1
@@ -1562,7 +1562,6 @@
 extern struct inode *new_inode(struct super_block *);
 extern int remove_suid(struct dentry *);
 extern void remove_dquot_ref(struct super_block *, int, struct list_head *);
-extern struct mutex iprune_mutex;
 
 extern void __insert_inode_hash(struct inode *, unsigned long hashval);
 extern void remove_inode_hash(struct inode *);
fs/inode.c renamed from fs/inode.c.old +1 -1
@@ -91,7 +91,7 @@
  * from its final dispose_list, the struct super_block they refer to
  * (for inode->i_sb->s_op) may already have been freed and reused.
  */
-DEFINE_MUTEX(iprune_mutex);
+static DEFINE_MUTEX(iprune_mutex);
 
 /*
  * Statistics gathering..