diff options
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index d5a238e6e6ed..832e2b86c541 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -988,7 +988,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, | |||
988 | * flushing the data to disk is handled separately below. | 988 | * flushing the data to disk is handled separately below. |
989 | */ | 989 | */ |
990 | 990 | ||
991 | if (file->f_op->fsync == 0) {/* COMMIT3 cannot work */ | 991 | if (!file->f_op->fsync) {/* COMMIT3 cannot work */ |
992 | stable = 2; | 992 | stable = 2; |
993 | *stablep = 2; /* FILE_SYNC */ | 993 | *stablep = 2; /* FILE_SYNC */ |
994 | } | 994 | } |