diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-02-12 02:38:16 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:32 -0400 |
commit | b57ce9694ec43dcb6ef6f189d6540e4b3d2c5e7a (patch) | |
tree | a6eaccac7c19b094d6ba956d3931e7315dfd3ef9 | |
parent | 8de52778798fe39660a8d6b26f290e0c93202761 (diff) |
vfs: drop_file_write_access() made static
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/file_table.c | 3 | ||||
-rw-r--r-- | include/linux/file.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index 20002e39754d..70f2a0fd6aec 100644 --- a/fs/file_table.c +++ b/fs/file_table.c | |||
@@ -204,7 +204,7 @@ EXPORT_SYMBOL(alloc_file); | |||
204 | * to write to @file, along with access to write through | 204 | * to write to @file, along with access to write through |
205 | * its vfsmount. | 205 | * its vfsmount. |
206 | */ | 206 | */ |
207 | void drop_file_write_access(struct file *file) | 207 | static void drop_file_write_access(struct file *file) |
208 | { | 208 | { |
209 | struct vfsmount *mnt = file->f_path.mnt; | 209 | struct vfsmount *mnt = file->f_path.mnt; |
210 | struct dentry *dentry = file->f_path.dentry; | 210 | struct dentry *dentry = file->f_path.dentry; |
@@ -219,7 +219,6 @@ void drop_file_write_access(struct file *file) | |||
219 | mnt_drop_write(mnt); | 219 | mnt_drop_write(mnt); |
220 | file_release_write(file); | 220 | file_release_write(file); |
221 | } | 221 | } |
222 | EXPORT_SYMBOL_GPL(drop_file_write_access); | ||
223 | 222 | ||
224 | /* the real guts of fput() - releasing the last reference to file | 223 | /* the real guts of fput() - releasing the last reference to file |
225 | */ | 224 | */ |
diff --git a/include/linux/file.h b/include/linux/file.h index 21a79958541c..58bf158c53d9 100644 --- a/include/linux/file.h +++ b/include/linux/file.h | |||
@@ -12,7 +12,6 @@ | |||
12 | struct file; | 12 | struct file; |
13 | 13 | ||
14 | extern void fput(struct file *); | 14 | extern void fput(struct file *); |
15 | extern void drop_file_write_access(struct file *file); | ||
16 | 15 | ||
17 | struct file_operations; | 16 | struct file_operations; |
18 | struct vfsmount; | 17 | struct vfsmount; |