vfs: drop_file_write_access() made static
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Feb 2012 07:38:16 +0000 (02:38 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:32 +0000 (21:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
include/linux/file.h

index 20002e39754ddc91ee92517c9b38f8215f004afa..70f2a0fd6aec62b28724d46e356dc0ff871f88b8 100644 (file)
@@ -204,7 +204,7 @@ EXPORT_SYMBOL(alloc_file);
  * to write to @file, along with access to write through
  * its vfsmount.
  */
-void drop_file_write_access(struct file *file)
+static void drop_file_write_access(struct file *file)
 {
        struct vfsmount *mnt = file->f_path.mnt;
        struct dentry *dentry = file->f_path.dentry;
@@ -219,7 +219,6 @@ void drop_file_write_access(struct file *file)
        mnt_drop_write(mnt);
        file_release_write(file);
 }
-EXPORT_SYMBOL_GPL(drop_file_write_access);
 
 /* the real guts of fput() - releasing the last reference to file
  */
index 21a79958541cba4c7f664063edb92ee5d6845d2e..58bf158c53d91aca4f7c60a22f0109851aa53b21 100644 (file)
@@ -12,7 +12,6 @@
 struct file;
 
 extern void fput(struct file *);
-extern void drop_file_write_access(struct file *file);
 
 struct file_operations;
 struct vfsmount;