diff options
Diffstat (limited to 'fs/nfs/nfs4file.c')
-rw-r--r-- | fs/nfs/nfs4file.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c index eef1b38a1b08..afddd6639afb 100644 --- a/fs/nfs/nfs4file.c +++ b/fs/nfs/nfs4file.c | |||
@@ -105,6 +105,13 @@ nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) | |||
105 | /* application has asked for meta-data sync */ | 105 | /* application has asked for meta-data sync */ |
106 | ret = pnfs_layoutcommit_inode(inode, true); | 106 | ret = pnfs_layoutcommit_inode(inode, true); |
107 | mutex_unlock(&inode->i_mutex); | 107 | mutex_unlock(&inode->i_mutex); |
108 | /* | ||
109 | * If nfs_file_fsync_commit detected a server reboot, then | ||
110 | * resend all dirty pages that might have been covered by | ||
111 | * the NFS_CONTEXT_RESEND_WRITES flag | ||
112 | */ | ||
113 | start = 0; | ||
114 | end = LLONG_MAX; | ||
108 | } while (ret == -EAGAIN); | 115 | } while (ret == -EAGAIN); |
109 | 116 | ||
110 | return ret; | 117 | return ret; |