diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index e679d24c39d3..6959cb76744b 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -780,7 +780,7 @@ do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) | |||
780 | * Flush all pending writes before doing anything | 780 | * Flush all pending writes before doing anything |
781 | * with locks.. | 781 | * with locks.. |
782 | */ | 782 | */ |
783 | nfs_sync_mapping(filp->f_mapping); | 783 | vfs_fsync(filp, 0); |
784 | 784 | ||
785 | l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); | 785 | l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); |
786 | if (!IS_ERR(l_ctx)) { | 786 | if (!IS_ERR(l_ctx)) { |