aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 55a8c3671233..92b4a6614fd3 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -474,7 +474,10 @@ nfs_clear_request_commit(struct nfs_page *req)
474static inline 474static inline
475int nfs_write_need_commit(struct nfs_write_data *data) 475int nfs_write_need_commit(struct nfs_write_data *data)
476{ 476{
477 return data->verf.committed != NFS_FILE_SYNC; 477 if (data->verf.committed == NFS_DATA_SYNC)
478 return data->lseg == NULL;
479 else
480 return data->verf.committed != NFS_FILE_SYNC;
478} 481}
479 482
480static inline 483static inline