diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
commit | 8624512aa908741ba2795200133eae0d7f4557ea (patch) | |
tree | d5d3036fccf2604f4c98dedc11e8adb929d6b52e /fs/nfsd/vfs.c | |
parent | 7b8f5d6f1d45d9f9de1d26e7d3c32aa5af11b488 (diff) |
Merge with 2.3.48.
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 5ea680286..c0f7da6cc 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -432,14 +432,14 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, err = nfserr_perm; if (IS_APPEND(inode) || IS_ISMNDLK(inode)) goto out; - if (!inode->i_op || !inode->i_op->default_file_ops) + if (!inode->i_fop) goto out; if ((access & MAY_WRITE) && (err = get_write_access(inode)) != 0) goto out_nfserr; memset(filp, 0, sizeof(*filp)); - filp->f_op = inode->i_op->default_file_ops; + filp->f_op = inode->i_fop; atomic_set(&filp->f_count, 1); filp->f_dentry = dentry; if (access & MAY_WRITE) { @@ -512,8 +512,7 @@ nfsd_sync_dir(struct dentry *dp) struct inode *inode = dp->d_inode; int (*fsync) (struct file *, struct dentry *); - if (inode->i_op->default_file_ops - && (fsync = inode->i_op->default_file_ops->fsync)) { + if (inode->i_fop && (fsync = inode->i_fop->fsync)) { fsync(NULL, dp); } } |