Message ID | 1300883412-32296-2-git-send-email-iisaman@netapp.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 55a8c36..92b4a66 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -474,7 +474,10 @@ nfs_clear_request_commit(struct nfs_page *req) static inline int nfs_write_need_commit(struct nfs_write_data *data) { - return data->verf.committed != NFS_FILE_SYNC; + if (data->verf.committed == NFS_DATA_SYNC) + return data->lseg == NULL; + else + return data->verf.committed != NFS_FILE_SYNC; } static inline