Merge tag 'nfsd-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
[platform/kernel/linux-rpi.git] / fs / locks.c
index a45efc1..76ad05f 100644 (file)
@@ -1744,13 +1744,6 @@ generic_add_lease(struct file *filp, int arg, struct file_lock **flp, void **pri
        if (is_deleg && !inode_trylock(inode))
                return -EAGAIN;
 
-       if (is_deleg && arg == F_WRLCK) {
-               /* Write delegations are not currently supported: */
-               inode_unlock(inode);
-               WARN_ON_ONCE(1);
-               return -EINVAL;
-       }
-
        percpu_down_read(&file_rwsem);
        spin_lock(&ctx->flc_lock);
        time_out_leases(inode, &dispose);