NFS4: remove a redundant lock range check
flock64_to_posix_lock() is already doing this check Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Reviewed-by: Jeff Layton <jeff.layton@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
Родитель
675e508f53
Коммит
12a16d15b6
|
@ -6447,9 +6447,6 @@ nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
|
|||
ctx = nfs_file_open_context(filp);
|
||||
state = ctx->state;
|
||||
|
||||
if (request->fl_start < 0 || request->fl_end < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (IS_GETLK(cmd)) {
|
||||
if (state != NULL)
|
||||
return nfs4_proc_getlk(state, F_GETLK, request);
|
||||
|
|
Загрузка…
Ссылка в новой задаче