diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-06-11 16:32:46 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-07-09 12:09:16 -0400 |
commit | 46cb650c224bb8e64a749090105d74b9e8eda669 (patch) | |
tree | 03c6b21bc70a983a63642c2bec6c0e26f07e4efb /fs/nfs/file.c | |
parent | b22602a673b1743bba4b62bb404ffd3b269d2f09 (diff) |
NFS: Remove the redundant file_open entry from struct nfs_rpc_ops
All instances are set to nfs_open(), so we should just remove the redundant
indirection. Ditto for the file_release op
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r-- | fs/nfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 78b26f875eee..509dcb58959e 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -129,7 +129,7 @@ nfs_file_open(struct inode *inode, struct file *filp) | |||
129 | 129 | ||
130 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); | 130 | nfs_inc_stats(inode, NFSIOS_VFSOPEN); |
131 | lock_kernel(); | 131 | lock_kernel(); |
132 | res = NFS_PROTO(inode)->file_open(inode, filp); | 132 | res = nfs_open(inode, filp); |
133 | unlock_kernel(); | 133 | unlock_kernel(); |
134 | return res; | 134 | return res; |
135 | } | 135 | } |
@@ -147,7 +147,7 @@ nfs_file_release(struct inode *inode, struct file *filp) | |||
147 | if (filp->f_mode & FMODE_WRITE) | 147 | if (filp->f_mode & FMODE_WRITE) |
148 | nfs_wb_all(dentry->d_inode); | 148 | nfs_wb_all(dentry->d_inode); |
149 | nfs_inc_stats(inode, NFSIOS_VFSRELEASE); | 149 | nfs_inc_stats(inode, NFSIOS_VFSRELEASE); |
150 | return NFS_PROTO(inode)->file_release(inode, filp); | 150 | return nfs_release(inode, filp); |
151 | } | 151 | } |
152 | 152 | ||
153 | /** | 153 | /** |