diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/write.c | 5 |
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) | |||
474 | static inline | 474 | static inline |
475 | int nfs_write_need_commit(struct nfs_write_data *data) | 475 | int 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 | ||
480 | static inline | 483 | static inline |