aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4file.c')
-rw-r--r--fs/nfs/nfs4file.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c
index 8de3407e0360..a816f0627a6c 100644
--- a/fs/nfs/nfs4file.c
+++ b/fs/nfs/nfs4file.c
@@ -100,8 +100,7 @@ nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync)
100 break; 100 break;
101 mutex_lock(&inode->i_mutex); 101 mutex_lock(&inode->i_mutex);
102 ret = nfs_file_fsync_commit(file, start, end, datasync); 102 ret = nfs_file_fsync_commit(file, start, end, datasync);
103 if (!ret && !datasync) 103 if (!ret)
104 /* application has asked for meta-data sync */
105 ret = pnfs_layoutcommit_inode(inode, true); 104 ret = pnfs_layoutcommit_inode(inode, true);
106 mutex_unlock(&inode->i_mutex); 105 mutex_unlock(&inode->i_mutex);
107 /* 106 /*
@@ -118,10 +117,10 @@ nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync)
118 117
119const struct file_operations nfs4_file_operations = { 118const struct file_operations nfs4_file_operations = {
120 .llseek = nfs_file_llseek, 119 .llseek = nfs_file_llseek,
121 .read = do_sync_read, 120 .read = new_sync_read,
122 .write = do_sync_write, 121 .write = new_sync_write,
123 .aio_read = nfs_file_read, 122 .read_iter = nfs_file_read,
124 .aio_write = nfs_file_write, 123 .write_iter = nfs_file_write,
125 .mmap = nfs_file_mmap, 124 .mmap = nfs_file_mmap,
126 .open = nfs4_file_open, 125 .open = nfs4_file_open,
127 .flush = nfs_file_flush, 126 .flush = nfs_file_flush,
@@ -130,7 +129,7 @@ const struct file_operations nfs4_file_operations = {
130 .lock = nfs_lock, 129 .lock = nfs_lock,
131 .flock = nfs_flock, 130 .flock = nfs_flock,
132 .splice_read = nfs_file_splice_read, 131 .splice_read = nfs_file_splice_read,
133 .splice_write = nfs_file_splice_write, 132 .splice_write = iter_file_splice_write,
134 .check_flags = nfs_check_flags, 133 .check_flags = nfs_check_flags,
135 .setlease = nfs_setlease, 134 .setlease = nfs_setlease,
136}; 135};