Skip to content

Commit

Permalink
9p: make struct v9fs_cached_file_operations static
Browse files Browse the repository at this point in the history
This patch makes te needlessly global struct v9fs_cached_file_operations
static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
  • Loading branch information
Adrian Bunk authored and Eric Van Hensbergen committed Mar 26, 2007
1 parent e0f2e3a commit d32b687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion fs/9p/v9fs_vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
extern struct file_system_type v9fs_fs_type;
extern const struct address_space_operations v9fs_addr_operations;
extern const struct file_operations v9fs_file_operations;
extern const struct file_operations v9fs_cached_file_operations;
extern const struct file_operations v9fs_dir_operations;
extern struct dentry_operations v9fs_dentry_operations;
extern struct dentry_operations v9fs_cached_dentry_operations;
Expand Down
4 changes: 3 additions & 1 deletion fs/9p/vfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#include "v9fs_vfs.h"
#include "fid.h"

static const struct file_operations v9fs_cached_file_operations;

/**
* v9fs_file_open - open a file (or directory)
* @inode: inode to be opened
Expand Down Expand Up @@ -245,7 +247,7 @@ v9fs_file_write(struct file *filp, const char __user * data,
return total;
}

const struct file_operations v9fs_cached_file_operations = {
static const struct file_operations v9fs_cached_file_operations = {
.llseek = generic_file_llseek,
.read = do_sync_read,
.aio_read = generic_file_aio_read,
Expand Down

0 comments on commit d32b687

Please sign in to comment.