OSDN Git Service

locks: allow support for write delegation
authorDai Ngo <dai.ngo@oracle.com>
Fri, 30 Jun 2023 01:52:37 +0000 (18:52 -0700)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commitd67cd907cf8ae2cd42e4f3859ad4de4c16d0c2a3
tree609a8a83b07f0c2b855fa1a50fc2b2c41903b284
parentf16ff1cafbf1e65cc706af912df90bcc15d39a6c
locks: allow support for write delegation

Remove the check for F_WRLCK in generic_add_lease to allow file_lock
to be used for write delegation.

First consumer is NFSD.

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/locks.c