Loading fs/nfsd/vfs.c +1 −2 Original line number Original line Diff line number Diff line Loading @@ -678,7 +678,6 @@ __be32 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access, struct file **filp) int access, struct file **filp) { { const struct cred *cred = current_cred(); struct dentry *dentry; struct dentry *dentry; struct inode *inode; struct inode *inode; int flags = O_RDONLY|O_LARGEFILE; int flags = O_RDONLY|O_LARGEFILE; Loading Loading @@ -733,7 +732,7 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, vfs_dq_init(inode); vfs_dq_init(inode); } } *filp = dentry_open(dget(dentry), mntget(fhp->fh_export->ex_path.mnt), *filp = dentry_open(dget(dentry), mntget(fhp->fh_export->ex_path.mnt), flags, cred); flags, current_cred()); if (IS_ERR(*filp)) if (IS_ERR(*filp)) host_err = PTR_ERR(*filp); host_err = PTR_ERR(*filp); else else Loading Loading
fs/nfsd/vfs.c +1 −2 Original line number Original line Diff line number Diff line Loading @@ -678,7 +678,6 @@ __be32 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access, struct file **filp) int access, struct file **filp) { { const struct cred *cred = current_cred(); struct dentry *dentry; struct dentry *dentry; struct inode *inode; struct inode *inode; int flags = O_RDONLY|O_LARGEFILE; int flags = O_RDONLY|O_LARGEFILE; Loading Loading @@ -733,7 +732,7 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, vfs_dq_init(inode); vfs_dq_init(inode); } } *filp = dentry_open(dget(dentry), mntget(fhp->fh_export->ex_path.mnt), *filp = dentry_open(dget(dentry), mntget(fhp->fh_export->ex_path.mnt), flags, cred); flags, current_cred()); if (IS_ERR(*filp)) if (IS_ERR(*filp)) host_err = PTR_ERR(*filp); host_err = PTR_ERR(*filp); else else Loading