diff options
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index f916b170e136..423e1ba07044 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -673,7 +673,10 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, | |||
673 | goto out_nfserr; | 673 | goto out_nfserr; |
674 | 674 | ||
675 | if (access & MAY_WRITE) { | 675 | if (access & MAY_WRITE) { |
676 | flags = O_WRONLY|O_LARGEFILE; | 676 | if (access & MAY_READ) |
677 | flags = O_RDWR|O_LARGEFILE; | ||
678 | else | ||
679 | flags = O_WRONLY|O_LARGEFILE; | ||
677 | 680 | ||
678 | DQUOT_INIT(inode); | 681 | DQUOT_INIT(inode); |
679 | } | 682 | } |