aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 6920127c5eb7..4ea92ce0537f 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -919,17 +919,6 @@ int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
919} 919}
920EXPORT_SYMBOL_GPL(nfs_flock); 920EXPORT_SYMBOL_GPL(nfs_flock);
921 921
922/*
923 * There is no protocol support for leases, so we have no way to implement
924 * them correctly in the face of opens by other clients.
925 */
926int nfs_setlease(struct file *file, long arg, struct file_lock **fl)
927{
928 dprintk("NFS: setlease(%pD2, arg=%ld)\n", file, arg);
929 return -EINVAL;
930}
931EXPORT_SYMBOL_GPL(nfs_setlease);
932
933const struct file_operations nfs_file_operations = { 922const struct file_operations nfs_file_operations = {
934 .llseek = nfs_file_llseek, 923 .llseek = nfs_file_llseek,
935 .read = new_sync_read, 924 .read = new_sync_read,
@@ -946,6 +935,6 @@ const struct file_operations nfs_file_operations = {
946 .splice_read = nfs_file_splice_read, 935 .splice_read = nfs_file_splice_read,
947 .splice_write = iter_file_splice_write, 936 .splice_write = iter_file_splice_write,
948 .check_flags = nfs_check_flags, 937 .check_flags = nfs_check_flags,
949 .setlease = nfs_setlease, 938 .setlease = simple_nosetlease,
950}; 939};
951EXPORT_SYMBOL_GPL(nfs_file_operations); 940EXPORT_SYMBOL_GPL(nfs_file_operations);